This commit is contained in:
j 2025-01-24 10:18:59 +05:30
parent 2fa33c0902
commit 5e53ad8556

View file

@ -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]