From 5e53ad8556daf2ad6345ae3b960eaf1661cdb11d Mon Sep 17 00:00:00 2001 From: j Date: Fri, 24 Jan 2025 10:18:59 +0530 Subject: [PATCH] typo --- transcribe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcribe.py b/transcribe.py index 3d7873d..8d31085 100644 --- a/transcribe.py +++ b/transcribe.py @@ -105,7 +105,7 @@ def extract_subtitles(item, user, layer, translate, gpu=False, join_sentences=Fa src = item.streams()[0].media.path tmp = tempfile.mkdtemp() - output = os.pat.join(tmp, "output.json") + output = os.path.join(tmp, "output.json") run_py = os.path.join(os.path.dirname(os.path.abspath(__file__)), "run_whisper.py") cmd = ["/opt/whisper-timestamped/bin/python", run_py]