Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -228,6 +228,8 @@ with gr.Blocks(css=css) as demo:
|
|
228 |
)
|
229 |
generate_bt = gr.Button("Generate", scale=1)
|
230 |
|
|
|
|
|
231 |
# Image Result from last prompt
|
232 |
image = gr.Image(type="filepath")
|
233 |
|
@@ -240,8 +242,9 @@ with gr.Blocks(css=css) as demo:
|
|
240 |
placeholder="Enter your prompt",
|
241 |
)
|
242 |
btn = gr.Button("Generate Gallery of Saved Images")
|
|
|
243 |
gallery = gr.Gallery(
|
244 |
-
label="Generated Images", show_label=
|
245 |
)
|
246 |
|
247 |
with gr.Row(variant="compact"):
|
@@ -302,4 +305,4 @@ with gr.Blocks(css=css) as demo:
|
|
302 |
clear_all_button.click(clear_all_button_click)
|
303 |
|
304 |
demo.queue()
|
305 |
-
demo.launch()
|
|
|
228 |
)
|
229 |
generate_bt = gr.Button("Generate", scale=1)
|
230 |
|
231 |
+
gr.Button("Download", link="/file=all_files.zip")
|
232 |
+
|
233 |
# Image Result from last prompt
|
234 |
image = gr.Image(type="filepath")
|
235 |
|
|
|
242 |
placeholder="Enter your prompt",
|
243 |
)
|
244 |
btn = gr.Button("Generate Gallery of Saved Images")
|
245 |
+
|
246 |
gallery = gr.Gallery(
|
247 |
+
label="Generated Images", show_label=True, elem_id="gallery"
|
248 |
)
|
249 |
|
250 |
with gr.Row(variant="compact"):
|
|
|
305 |
clear_all_button.click(clear_all_button_click)
|
306 |
|
307 |
demo.queue()
|
308 |
+
demo.launch(allowed_paths=["/"])
|