Spaces:
Sleeping
Sleeping
Commit
·
4a9687c
1
Parent(s):
9e226ae
Updates
Browse files
app.py
CHANGED
@@ -232,6 +232,6 @@ with gr.Blocks() as demo:
|
|
232 |
gallery.select(update_selection, [width, height], [prompt, selected_lora, gr.State(), width, height])
|
233 |
randomize_seed.change(lambda x: gr.update(visible=not x), randomize_seed, seed_input)
|
234 |
generate_event = generate.click(run_lora, inputs=[prompt, image_input, image_strength, cfg_scale, steps, gr.State(), randomize_seed, seed_input, width, height, lora_scale], outputs=[result, seed_output, progress_bar])
|
235 |
-
cancel.click(lambda: None, None, None, cancels=[generate_event])
|
236 |
|
237 |
demo.queue().launch()
|
|
|
232 |
gallery.select(update_selection, [width, height], [prompt, selected_lora, gr.State(), width, height])
|
233 |
randomize_seed.change(lambda x: gr.update(visible=not x), randomize_seed, seed_input)
|
234 |
generate_event = generate.click(run_lora, inputs=[prompt, image_input, image_strength, cfg_scale, steps, gr.State(), randomize_seed, seed_input, width, height, lora_scale], outputs=[result, seed_output, progress_bar])
|
235 |
+
cancel.click(lambda: None, None, None, cancels=[generate_event])
|
236 |
|
237 |
demo.queue().launch()
|