Merge branch 'main' of https://huggingface.co/spaces/2MaxM/ShoeGen
Browse files
app.py
CHANGED
@@ -24,7 +24,9 @@ with gr.Blocks(_TITLE) as ShoeGen:
|
|
24 |
prompt = gr.Textbox(label="Enter a prompt")
|
25 |
button_gen = gr.Button("Generate Image")
|
26 |
with gr.Column():
|
27 |
-
|
|
|
|
|
28 |
|
29 |
button_gen.click(generate_image, inputs=[prompt], outputs=image)
|
30 |
|
|
|
24 |
prompt = gr.Textbox(label="Enter a prompt")
|
25 |
button_gen = gr.Button("Generate Image")
|
26 |
with gr.Column():
|
27 |
+
# show images
|
28 |
+
gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery", show_download_button=True, columns=[2])
|
29 |
+
|
30 |
|
31 |
button_gen.click(generate_image, inputs=[prompt], outputs=image)
|
32 |
|