Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def generate_images(prompt):
|
|
19 |
with gr.Blocks() as demo:
|
20 |
text_input = gr.Textbox(label="Enter prompt")
|
21 |
gallery = gr.Gallery(label="Generated Images", columns=6, rows=2, object_fit="contain", height="auto")
|
22 |
-
|
23 |
# text_input.submit(fn=generate_images, inputs=text_input, outputs=gallery)
|
24 |
text_input.submit(fn=generate_images, inputs=text_input, outputs=[gallery, message_display])
|
25 |
|
|
|
19 |
with gr.Blocks() as demo:
|
20 |
text_input = gr.Textbox(label="Enter prompt")
|
21 |
gallery = gr.Gallery(label="Generated Images", columns=6, rows=2, object_fit="contain", height="auto")
|
22 |
+
message_display = gr.Text(value='') # Component to display the message
|
23 |
# text_input.submit(fn=generate_images, inputs=text_input, outputs=gallery)
|
24 |
text_input.submit(fn=generate_images, inputs=text_input, outputs=[gallery, message_display])
|
25 |
|