Spaces:
Runtime error
Runtime error
input_video
Browse files
app.py
CHANGED
@@ -18,9 +18,9 @@ def video2mp3(video_file, output_ext="mp3"):
|
|
18 |
return f"{filename}.{output_ext}"
|
19 |
|
20 |
|
21 |
-
def translate(
|
22 |
|
23 |
-
audio_file = video2mp3(
|
24 |
|
25 |
options = dict(beam_size=5, best_of=5, fp16 = False)
|
26 |
translate_options = dict(task="translate", **options)
|
|
|
18 |
return f"{filename}.{output_ext}"
|
19 |
|
20 |
|
21 |
+
def translate(input_video):
|
22 |
|
23 |
+
audio_file = video2mp3(input_video)
|
24 |
|
25 |
options = dict(beam_size=5, best_of=5, fp16 = False)
|
26 |
translate_options = dict(task="translate", **options)
|