Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ from pytube import YouTube
|
|
6 |
|
7 |
|
8 |
def app(video_link):
|
9 |
-
|
10 |
-
return gr.
|
11 |
|
12 |
interface = gr.Interface(fn = app, inputs = [gr.components.Textbox(label="Enter youtube link")],
|
13 |
outputs=[gr.components.Video(label="Your result")]
|
|
|
6 |
|
7 |
|
8 |
def app(video_link):
|
9 |
+
video = download_youtube_video(video_link)
|
10 |
+
return gr.Video(video)
|
11 |
|
12 |
interface = gr.Interface(fn = app, inputs = [gr.components.Textbox(label="Enter youtube link")],
|
13 |
outputs=[gr.components.Video(label="Your result")]
|