Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def main(url, clip_type, progress=gr.Progress()):
|
|
51 |
progress(35, desc="transcribe")
|
52 |
subtitle_file = translate(srt_list)
|
53 |
progress(55, desc="translate")
|
54 |
-
output_video_file =
|
55 |
progress(100, desc="finish")
|
56 |
os.remove(subtitle_file)
|
57 |
else:
|
@@ -69,7 +69,6 @@ def main(url, clip_type, progress=gr.Progress()):
|
|
69 |
os.remove(subtitle_file)
|
70 |
return output_video_file
|
71 |
|
72 |
-
|
73 |
with gr.Blocks() as demo:
|
74 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
75 |
with gr.Column():
|
|
|
51 |
progress(35, desc="transcribe")
|
52 |
subtitle_file = translate(srt_list)
|
53 |
progress(55, desc="translate")
|
54 |
+
output_video_file = dub(subtitle_file)
|
55 |
progress(100, desc="finish")
|
56 |
os.remove(subtitle_file)
|
57 |
else:
|
|
|
69 |
os.remove(subtitle_file)
|
70 |
return output_video_file
|
71 |
|
|
|
72 |
with gr.Blocks() as demo:
|
73 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
74 |
with gr.Column():
|