Salman11223 commited on
Commit
0a17430
·
verified ·
1 Parent(s): 28fd9fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ from pytube import YouTube
6
 
7
 
8
  def app(video_link):
9
- downloaded_file_path = download_youtube_video(video_link)
10
- return 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")]
 
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")]