Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -69,9 +69,6 @@ def video_to_translate(file_obj,initial_language,final_language):
|
|
69 |
#return 'audio.wav'
|
70 |
return 'new_filename.mp4'
|
71 |
|
72 |
-
examples = [[os.path.abspath("obama.mp4")]]
|
73 |
-
|
74 |
-
|
75 |
initial_language = gr.inputs.Dropdown(["English","Italian","Japanese","Russian","Spanish","German"])
|
76 |
final_language = gr.inputs.Dropdown([ "Russian","Italian","Spanish","German","English"])
|
77 |
|
@@ -82,14 +79,11 @@ gr.Interface(fn = video_to_translate,
|
|
82 |
verbose = True,
|
83 |
title = 'Video Translator',
|
84 |
description = 'A simple application that translate from English,Italian ,Japanese ,Russian ,Spanish and German video files to Italian, Spanish, Russian or English . Upload your own file, or click one of the examples to load them. Wait one minute to process.',
|
85 |
-
|
86 |
'''<div>
|
87 |
<p style="text-align: center"> All you need to do is to upload the mp4 file and hit submit, then wait for compiling. After that click on Play/Pause for listing to the video. The video is saved in a mp4 format.
|
88 |
For more information visit <a href="https://ruslanmv.com/">ruslanmv.com</a>
|
89 |
</p>
|
90 |
</div>''',
|
91 |
-
|
92 |
-
).launch()
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
69 |
#return 'audio.wav'
|
70 |
return 'new_filename.mp4'
|
71 |
|
|
|
|
|
|
|
72 |
initial_language = gr.inputs.Dropdown(["English","Italian","Japanese","Russian","Spanish","German"])
|
73 |
final_language = gr.inputs.Dropdown([ "Russian","Italian","Spanish","German","English"])
|
74 |
|
|
|
79 |
verbose = True,
|
80 |
title = 'Video Translator',
|
81 |
description = 'A simple application that translate from English,Italian ,Japanese ,Russian ,Spanish and German video files to Italian, Spanish, Russian or English . Upload your own file, or click one of the examples to load them. Wait one minute to process.',
|
82 |
+
article =
|
83 |
'''<div>
|
84 |
<p style="text-align: center"> All you need to do is to upload the mp4 file and hit submit, then wait for compiling. After that click on Play/Pause for listing to the video. The video is saved in a mp4 format.
|
85 |
For more information visit <a href="https://ruslanmv.com/">ruslanmv.com</a>
|
86 |
</p>
|
87 |
</div>''',
|
88 |
+
examples=[['obama.mp4',"English",'Spanish']]
|
89 |
+
).launch()
|
|
|
|
|
|