Salman11223 commited on
Commit
59b0b42
·
verified ·
1 Parent(s): 6ea0d31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -8,7 +8,10 @@ def app(video_link):
8
  video_link = video_link
9
  try:
10
  print(f"Received video link: {video_link}")
11
-
 
 
 
12
  except Exception as e:
13
  print(f"An error occurred: {str(e)}")
14
  return None
 
8
  video_link = video_link
9
  try:
10
  print(f"Received video link: {video_link}")
11
+ video_path = download_youtube_video(video_link)
12
+ video_path = video_path
13
+ print(f"Downloaded video path: {video_path}")
14
+ return gr.Video(video_path)
15
  except Exception as e:
16
  print(f"An error occurred: {str(e)}")
17
  return None