Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
@@ -43,17 +43,13 @@ def yt_download(url, output_format):
|
|
43 |
|
44 |
with gr.Blocks() as demo:
|
45 |
gr.Markdown("## YouTube Downloader")
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
url_input = gr.Textbox(label="YouTube URL")
|
49 |
-
with gr.Row():
|
50 |
-
format_input = gr.Radio(choices=["audio", "video"], label="Format")
|
51 |
-
with gr.Row():
|
52 |
-
download_btn = gr.Button("Download")
|
53 |
-
download_btn.click(yt_download, inputs=[url_input, format_input], outputs=[audio_output, video_output])
|
54 |
-
|
55 |
-
audio_output = gr.Audio(label="Audio Output")
|
56 |
-
|
57 |
-
video_output = gr.Video(label="Video Output")
|
58 |
|
59 |
demo.launch()
|
|
|
43 |
|
44 |
with gr.Blocks() as demo:
|
45 |
gr.Markdown("## YouTube Downloader")
|
46 |
+
url_input = gr.Textbox(label="YouTube URL")
|
47 |
+
format_input = gr.Radio(choices=["audio", "video"], label="Format")
|
48 |
+
download_btn = gr.Button("Download")
|
49 |
+
download_btn.click(yt_download, inputs=[url_input, format_input], outputs=[audio_output, video_output])
|
50 |
+
|
51 |
+
audio_output = gr.Audio(label="Audio Output")
|
52 |
|
53 |
+
video_output = gr.Video(label="Video Output")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
demo.launch()
|