DigiP-AI commited on
Commit
1de3443
·
verified ·
1 Parent(s): ae28e3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -206,16 +206,19 @@ with gr.Blocks(theme=theme, css=css) as app:
206
  # Image output area to display the generated image
207
  with gr.Row():
208
  image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
 
 
 
 
 
 
209
  with gr.Row():
210
  gr.Examples(
211
  examples = examples,
212
  inputs = [text_prompt],
213
  )
214
- with gr.Column():
215
- with gr.Row():
216
- clear_results = gr.Button(value="Clear Image 🗑️", variant="primary", elem_id="clear_button")
217
- clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
218
-
219
  # Bind the button to the query function with the added width and height inputs
220
 
221
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)
 
206
  # Image output area to display the generated image
207
  with gr.Row():
208
  image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
209
+
210
+ with gr.Column():
211
+ with gr.Row():
212
+ clear_results = gr.Button(value="Clear Image 🗑️", variant="primary", elem_id="clear_button")
213
+ clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
214
+
215
  with gr.Row():
216
  gr.Examples(
217
  examples = examples,
218
  inputs = [text_prompt],
219
  )
220
+
221
+
 
 
 
222
  # Bind the button to the query function with the added width and height inputs
223
 
224
  text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=image_output)