Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,12 +37,13 @@ def get_output_component(download_video):
|
|
37 |
|
38 |
# Create the Gradio interface
|
39 |
with gr.Blocks() as demo:
|
40 |
-
gr.Markdown("
|
41 |
|
42 |
with gr.Row():
|
43 |
url_input = gr.Textbox(label="YouTube URL")
|
44 |
-
|
45 |
-
|
|
|
46 |
|
47 |
output_audio = gr.Audio(label="Downloaded Media", visible=False)
|
48 |
output_file = gr.File(label="Downloaded Media", visible=False)
|
@@ -53,6 +54,7 @@ with gr.Blocks() as demo:
|
|
53 |
return gr.update(value=output_file, visible=True), gr.update(visible=False)
|
54 |
else:
|
55 |
return gr.update(visible=False), gr.update(value=output_file, visible=True)
|
|
|
56 |
|
57 |
download_button.click(
|
58 |
handle_download,
|
|
|
37 |
|
38 |
# Create the Gradio interface
|
39 |
with gr.Blocks() as demo:
|
40 |
+
gr.Markdown(f"## <div style='text-align: center;'> YOUTUBE Downloader</div>")
|
41 |
|
42 |
with gr.Row():
|
43 |
url_input = gr.Textbox(label="YouTube URL")
|
44 |
+
with gr.Row():
|
45 |
+
download_video_checkbox = gr.Checkbox(label="Download Video", value=False)
|
46 |
+
download_button = gr.Button("Download")
|
47 |
|
48 |
output_audio = gr.Audio(label="Downloaded Media", visible=False)
|
49 |
output_file = gr.File(label="Downloaded Media", visible=False)
|
|
|
54 |
return gr.update(value=output_file, visible=True), gr.update(visible=False)
|
55 |
else:
|
56 |
return gr.update(visible=False), gr.update(value=output_file, visible=True)
|
57 |
+
gr.Markdown(f"### <div style='text-align: center;'>made with ❤ by <a href='https://huggingface.co/Hev832'>Hev832</a></div>")
|
58 |
|
59 |
download_button.click(
|
60 |
handle_download,
|