Spaces:
Running
Running
Commit
•
bc39353
1
Parent(s):
946d1ea
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
from youtube_video import download_youtube_video
|
2 |
-
import gradio as gr
|
3 |
-
|
4 |
-
def app(video_link):
|
5 |
-
video_path = download_youtube_video(video_link)
|
6 |
-
return video_path
|
7 |
-
|
8 |
-
interface = gr.Interface(
|
9 |
-
fn=app,
|
10 |
-
inputs=gr.Textbox(label="Enter YouTube link"),
|
11 |
-
outputs=gr.Video(label = "video_path")
|
12 |
-
)
|
13 |
-
|
14 |
interface.launch(debug=True)
|
|
|
1 |
+
from youtube_video import download_youtube_video
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
def app(video_link):
|
5 |
+
video_path = download_youtube_video(video_link)
|
6 |
+
return video_path
|
7 |
+
|
8 |
+
interface = gr.Interface(
|
9 |
+
fn=app,
|
10 |
+
inputs=gr.Textbox(label="Enter YouTube link 🔗 To Download Video⬇️ "),
|
11 |
+
outputs=gr.Video(label = "video_path")
|
12 |
+
)
|
13 |
+
|
14 |
interface.launch(debug=True)
|