Spaces:
Runtime error
Runtime error
Commit
·
67eb764
1
Parent(s):
abd418e
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from Translator import VideoToSubtitle
|
2 |
+
import gradio
|
3 |
+
|
4 |
+
interface=gr.Interface(fn=VideoToSubtitle,inputs=[gr.inputs.Textbox(lines=2,placeholder="Enter Video URL",label="URL"),gr.inputs.Radio(["Arabic","French","German","Persian","Spanish"],type="value",label="Language")],
|
5 |
+
outputs=[gr.outputs.Textbox(label="English Outcome"),gr.outputs.Textbox(label="Language Outcome")],
|
6 |
+
examples=[
|
7 |
+
["https://www.youtube.com/watch?v=8BBzoOB7nxs&t=3s","Spanish"]
|
8 |
+
],
|
9 |
+
enable_queu=True)
|
10 |
+
interface.launch(debug=True)
|