DigiP-AI commited on
Commit
574f43c
·
verified ·
1 Parent(s): 90b9bb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -154,11 +154,11 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
154
  with gr.Row():
155
  with gr.Accordion("🫘Seed", open=False):
156
  seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
157
-
158
- with gr.Row():
159
- text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
160
- clear_prompt =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
161
- clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
162
 
163
  with gr.Group():
164
  with gr.Row():
@@ -166,11 +166,11 @@ with gr.Blocks(theme=theme, css=css, elem_id="app-container") as app:
166
  with gr.Row():
167
  clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
168
  clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
169
-
170
- gr.Examples(
171
- examples = examples,
172
- inputs = [text_prompt],
173
- )
174
 
175
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
176
 
 
154
  with gr.Row():
155
  with gr.Accordion("🫘Seed", open=False):
156
  seed_output = gr.Textbox(label="Seed Used", show_copy_button = True, elem_id="seed-output")
157
+ with gr.Group():
158
+ with gr.Row():
159
+ text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
160
+ clear_prompt =gr.Button("Clear Prompt",variant="primary", elem_id="clear_button")
161
+ clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
162
 
163
  with gr.Group():
164
  with gr.Row():
 
166
  with gr.Row():
167
  clear_results = gr.Button(value="Clear Image", variant="primary", elem_id="clear_button")
168
  clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
169
+ with gr.Group():
170
+ gr.Examples(
171
+ examples = examples,
172
+ inputs = [text_prompt],
173
+ )
174
 
175
  text_button.click(query, inputs=[custom_lora, text_prompt, negative_prompt, steps, cfg, method, seed, strength, width, height], outputs=[image_output, seed_output])
176