Spaces:
Sleeping
Sleeping
Commit
·
0baa9f7
1
Parent(s):
c6b5f03
Updates
Browse files
app.py
CHANGED
@@ -230,8 +230,8 @@ with gr.Blocks() as demo:
|
|
230 |
|
231 |
# Event handlers
|
232 |
gallery.select(update_selection, [width, height], [prompt, selected_lora, gr.State(), width, height])
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
|
237 |
demo.queue().launch()
|
|
|
230 |
|
231 |
# Event handlers
|
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()
|