Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -168,13 +168,13 @@ with gr.Blocks(theme=theme, fill_width=True, css=css) as app:
|
|
168 |
)
|
169 |
|
170 |
with gr.Group():
|
171 |
-
|
172 |
-
|
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 |
|
177 |
-
|
178 |
if __name__ == "__main__":
|
179 |
timeout = 100
|
180 |
app.launch(show_api=False, share=False)
|
|
|
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 |
+
pp.queue(default_concurrency_limit=200, max_size=200) # <-- Sets up a queue with default parameters
|
178 |
if __name__ == "__main__":
|
179 |
timeout = 100
|
180 |
app.launch(show_api=False, share=False)
|