Spaces:
Runtime error
Runtime error
fixed output_dir
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def translate(video):
|
|
26 |
translate_options = dict(task="translate", **options)
|
27 |
result = model.transcribe(audio_file,**translate_options)
|
28 |
|
29 |
-
|
30 |
audio_path = audio_file.split(".")[0]
|
31 |
|
32 |
with open(os.path.join(output_dir, audio_path + ".vtt"), "w") as vtt:
|
|
|
26 |
translate_options = dict(task="translate", **options)
|
27 |
result = model.transcribe(audio_file,**translate_options)
|
28 |
|
29 |
+
output_dir = ''
|
30 |
audio_path = audio_file.split(".")[0]
|
31 |
|
32 |
with open(os.path.join(output_dir, audio_path + ".vtt"), "w") as vtt:
|