mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
sort styles after preset change
This commit is contained in:
@@ -491,7 +491,11 @@ with shared.gradio_root:
|
|||||||
image_seed,
|
image_seed,
|
||||||
generate_button,
|
generate_button,
|
||||||
load_parameter_button
|
load_parameter_button
|
||||||
] + lora_ctrls, queue=False, show_progress=False)
|
] + lora_ctrls, queue=False, show_progress=False) \
|
||||||
|
.then(fn=refresh_seed, inputs=[seed_random, image_seed], outputs=image_seed) \
|
||||||
|
.then(fn=style_sorter.sort_styles, inputs=style_selections, outputs=style_selections, queue=False, show_progress=False) \
|
||||||
|
.then(lambda: None, _js='()=>{refresh_style_localization();}')
|
||||||
|
|
||||||
|
|
||||||
performance_selection.change(lambda x: [gr.update(interactive=x != 'Extreme Speed')] * 11 +
|
performance_selection.change(lambda x: [gr.update(interactive=x != 'Extreme Speed')] * 11 +
|
||||||
[gr.update(visible=x != 'Extreme Speed')] * 1,
|
[gr.update(visible=x != 'Extreme Speed')] * 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user