Spaces:
Running
Running
Rehman1603
commited on
Commit
•
65f08c6
1
Parent(s):
19a174e
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ def main_fun(video_url,language):
|
|
12 |
lang="en"
|
13 |
if(language=="English"):
|
14 |
lang="en"
|
15 |
-
elif language=="
|
16 |
-
lang="
|
17 |
elif language=="Arabic":
|
18 |
lang="ar"
|
19 |
elif language=="Hindi":
|
@@ -27,10 +27,10 @@ def main_fun(video_url,language):
|
|
27 |
result=Video_dub(downlaod_video_path,merge_voice)
|
28 |
return downlaod_video_path,result
|
29 |
|
30 |
-
interface=gr.Interface(fn=main_fun,inputs=[gr.components.Textbox(label="Enter YouTube Video URL"),gr.components.Radio(['English','
|
31 |
outputs=[gr.components.Video(label="Original Video"),gr.components.Video(label="Dubb video")],
|
32 |
examples=[
|
33 |
-
["https://www.youtube.com/watch?v=N9B59PHIFbA","
|
34 |
|
35 |
])
|
36 |
interface.launch(debug=True)
|
|
|
12 |
lang="en"
|
13 |
if(language=="English"):
|
14 |
lang="en"
|
15 |
+
elif language=="Russian":
|
16 |
+
lang="ru"
|
17 |
elif language=="Arabic":
|
18 |
lang="ar"
|
19 |
elif language=="Hindi":
|
|
|
27 |
result=Video_dub(downlaod_video_path,merge_voice)
|
28 |
return downlaod_video_path,result
|
29 |
|
30 |
+
interface=gr.Interface(fn=main_fun,inputs=[gr.components.Textbox(label="Enter YouTube Video URL"),gr.components.Radio(['English','Russian','Arabic','Hindi'],type="value")],
|
31 |
outputs=[gr.components.Video(label="Original Video"),gr.components.Video(label="Dubb video")],
|
32 |
examples=[
|
33 |
+
["https://www.youtube.com/watch?v=N9B59PHIFbA","Hindi"],
|
34 |
|
35 |
])
|
36 |
interface.launch(debug=True)
|