Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -98,14 +98,6 @@ with gr.Blocks(theme="bethecloud/storj_theme") as demo:
|
|
98 |
gr.Markdown("Enter a URL to download the webpage and its assets as a ZIP file.")
|
99 |
|
100 |
url_input = gr.Textbox(label="Website URL", placeholder="Enter a URL (e.g., https://www.example.com)")
|
101 |
-
|
102 |
-
|
103 |
-
examples = [
|
104 |
-
"https://www.bmw.com/en/index.html",
|
105 |
-
"https://www.ferrari.com/en-EN",
|
106 |
-
"https://streamlit.io/"
|
107 |
-
]
|
108 |
-
|
109 |
|
110 |
download_button = gr.Button("Download as ZIP")
|
111 |
output_file = gr.File(label="Download")
|
@@ -113,7 +105,6 @@ examples = [
|
|
113 |
def set_example_url(url):
|
114 |
url_input.value = url
|
115 |
|
116 |
-
download_button.click(fn=generate_zip_file, inputs=url_input, outputs=output_file)
|
117 |
-
example=examples
|
118 |
|
119 |
demo.launch()
|
|
|
98 |
gr.Markdown("Enter a URL to download the webpage and its assets as a ZIP file.")
|
99 |
|
100 |
url_input = gr.Textbox(label="Website URL", placeholder="Enter a URL (e.g., https://www.example.com)")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
download_button = gr.Button("Download as ZIP")
|
103 |
output_file = gr.File(label="Download")
|
|
|
105 |
def set_example_url(url):
|
106 |
url_input.value = url
|
107 |
|
108 |
+
download_button.click(fn=generate_zip_file, inputs=url_input, outputs=output_file)
|
|
|
109 |
|
110 |
demo.launch()
|