DigiP-AI commited on
Commit
14b4e85
·
verified ·
1 Parent(s): 1a86ae4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -156,23 +156,23 @@ with gr.Blocks(theme=theme, fill_width=True, css=css) as app:
156
  clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
157
 
158
  with gr.Column(scale=10):
159
- with gr.Group():
160
- with gr.Row():
161
- image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
162
-
163
- with gr.Group():
 
 
 
 
 
 
 
164
  with gr.Row():
165
- gr.Examples(
166
- examples = examples,
167
- inputs = [text_prompt],
168
- )
169
-
170
- with gr.Group():
171
- with gr.Row():
172
- clear_results = gr.Button(value="Clear Image 🗑️", variant="primary", elem_id="clear_button")
173
- clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
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
 
177
  app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
178
  if __name__ == "__main__":
 
156
  clear_prompt.click(lambda: (None), None, [text_prompt], queue=False, show_api=False)
157
 
158
  with gr.Column(scale=10):
159
+ with gr.Group():
160
+ with gr.Row():
161
+ image_output = gr.Image(type="pil", label="Image Output", format="png", show_share_button=False, elem_id="gallery")
162
+
163
+ with gr.Group():
164
+ with gr.Row():
165
+ gr.Examples(
166
+ examples = examples,
167
+ inputs = [text_prompt],
168
+ )
169
+
170
+ with gr.Group():
171
  with gr.Row():
172
+ clear_results = gr.Button(value="Clear Image 🗑️", variant="primary", elem_id="clear_button")
173
+ clear_results.click(lambda: (None), None, [image_output], queue=False, show_api=False)
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
 
177
  app.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
178
  if __name__ == "__main__":