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]