charliebaby2023
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
from youtube_video import download_youtube_video
|
2 |
import requests
|
3 |
import gradio as gr
|
4 |
-
|
|
|
5 |
def app(video_link):
|
6 |
video_path = download_youtube_video(video_link)
|
7 |
return video_path
|
8 |
-
|
9 |
interface = gr.Interface(
|
10 |
data = requests.get('data', ''), # Extracting data from URL query parameter
|
11 |
fn=app,
|
|
|
1 |
from youtube_video import download_youtube_video
|
2 |
import requests
|
3 |
import gradio as gr
|
4 |
+
app = (video_link)
|
5 |
+
@app.route('/')
|
6 |
def app(video_link):
|
7 |
video_path = download_youtube_video(video_link)
|
8 |
return video_path
|
9 |
+
|
10 |
interface = gr.Interface(
|
11 |
data = requests.get('data', ''), # Extracting data from URL query parameter
|
12 |
fn=app,
|