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 |
-
|
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 |
+
downloaded_file_path = download_youtube_video(video_link)
|
10 |
+
return gr.VideoFile(downloaded_file_path)
|
11 |
|
12 |
interface = gr.Interface(fn = app, inputs = [gr.components.Textbox(label="Enter youtube link")],
|
13 |
outputs=[gr.components.Video(label="Your result")]
|