Update app.py
Browse files
app.py
CHANGED
@@ -202,12 +202,12 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
202 |
|
203 |
with gr.Column(elem_id="app-container"):
|
204 |
# Image output area to display the generated image
|
205 |
-
|
206 |
-
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
|
212 |
gr.Examples(
|
213 |
examples = examples,
|
|
|
202 |
|
203 |
with gr.Column(elem_id="app-container"):
|
204 |
# Image output area to display the generated image
|
205 |
+
with gr.Row():
|
206 |
+
image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
|
207 |
|
208 |
+
with gr.Row():
|
209 |
+
clear_results = gr.Button(value="Clear Image 🗑️", variant="primary", elem_id="clear_button")
|
210 |
+
clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
|
211 |
|
212 |
gr.Examples(
|
213 |
examples = examples,
|