charliebaby2023
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,11 @@ import gradio as gr
|
|
6 |
def app(video_link):
|
7 |
video_path = download_youtube_video(video_link)
|
8 |
route('/')
|
|
|
9 |
return video_path
|
10 |
|
11 |
interface = gr.Interface(
|
12 |
-
|
13 |
fn=app,
|
14 |
inputs=gr.Textbox(label="Enter YouTube link"),
|
15 |
outputs=gr.Video(label = "video_path")
|
|
|
6 |
def app(video_link):
|
7 |
video_path = download_youtube_video(video_link)
|
8 |
route('/')
|
9 |
+
data = requests.get('data', '') # Extracting data from URL query parameter
|
10 |
return video_path
|
11 |
|
12 |
interface = gr.Interface(
|
13 |
+
|
14 |
fn=app,
|
15 |
inputs=gr.Textbox(label="Enter YouTube link"),
|
16 |
outputs=gr.Video(label = "video_path")
|