Salman11223
commited on
Update app.py
Browse files
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
|