Spaces:
Runtime error
Runtime error
Commit
·
4e3c701
1
Parent(s):
464d05e
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from YouTubeDataExtraction import Video_To_Text
|
3 |
+
|
4 |
+
interface=gr.Interface(fn=Video_To_Text,inputs=[gr.inputs.Textbox(placeholder="Enter YouTube Video Link",label="YouTube Video Link"),gr.inputs.Radio(["Urdu","German","Hindi"],type="value",label="Select any one Language")],
|
5 |
+
outputs=[gr.outputs.Textbox(label="Result in English"),gr.outputs.Textbox(label="Result in Choose language")],
|
6 |
+
examples=[
|
7 |
+
["https://www.youtube.com/watch?v=fLeJJPxua3E","Urdu"]
|
8 |
+
],
|
9 |
+
enable_queu=True)
|
10 |
+
|
11 |
+
interface.launch(debug=True)
|