DigiP-AI commited on
Commit
3bbe670
·
verified ·
1 Parent(s): 28063cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -173,15 +173,12 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
173
  with gr.Accordion("🫘Seed", open=False):
174
  seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
175
 
176
-
 
177
 
178
  with gr.Row():
179
  image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
180
- with gr.Row():
181
- text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
182
- with gr.Row():
183
- clr_button =gr.Button("Clear",variant="primary", elem_id="clear_button")
184
- clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt, gr.Image(value=""), None, image_output)
185
  gr.Examples(
186
  examples = examples,
187
  inputs = [text_prompt],
@@ -189,6 +186,9 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
189
 
190
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
191
 
 
 
 
192
 
193
  with gr.Tab("Image Upscaler"):
194
  with gr.Row():
 
173
  with gr.Accordion("🫘Seed", open=False):
174
  seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
175
 
176
+ with gr.Row():
177
+ text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
178
 
179
  with gr.Row():
180
  image_output = gr.Image(type="pil", label="Image Output", format="png", elem_id="gallery")
181
+
 
 
 
 
182
  gr.Examples(
183
  examples = examples,
184
  inputs = [text_prompt],
 
186
 
187
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
188
 
189
+ with gr.Row():
190
+ clr_button =gr.Button("Clear",variant="primary", elem_id="clear_button")
191
+ clr_button.click(lambda: gr.Textbox(value=""), None, text_prompt, gr.Image(value=""), None, image_output)
192
 
193
  with gr.Tab("Image Upscaler"):
194
  with gr.Row():