Spaces:
Runtime error
Runtime error
Update run.py
Browse files
run.py
CHANGED
@@ -46,13 +46,14 @@ with gr.Blocks() as demo:
|
|
46 |
|
47 |
with gr.Row():
|
48 |
url_input = gr.Textbox(label="YouTube URL")
|
|
|
49 |
format_input = gr.Radio(choices=["audio", "video"], label="Format")
|
|
|
|
|
|
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
download_btn.click(yt_download, inputs=[url_input, format_input], outputs=[audio_output, video_output])
|
57 |
-
|
58 |
demo.launch()
|
|
|
46 |
|
47 |
with gr.Row():
|
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()
|