Salman11223
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,15 @@
|
|
1 |
from youtube_video import download_youtube_video
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
4 |
def app(video_link):
|
|
|
5 |
try:
|
6 |
print(f"Received video link: {video_link}")
|
7 |
video_path = download_youtube_video(video_link)
|
|
|
8 |
print(f"Downloaded video path: {video_path}")
|
9 |
return gr.Video(video_path)
|
10 |
except Exception as e:
|
|
|
1 |
from youtube_video import download_youtube_video
|
2 |
import gradio as gr
|
3 |
|
4 |
+
video_link = None
|
5 |
+
video_path = None
|
6 |
+
|
7 |
def app(video_link):
|
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:
|