sort styles after preset change
This commit is contained in:
parent
f1bee4b103
commit
7ddd20e7f0
6
webui.py
6
webui.py
|
|
@ -491,7 +491,11 @@ with shared.gradio_root:
|
|||
image_seed,
|
||||
generate_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 +
|
||||
[gr.update(visible=x != 'Extreme Speed')] * 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue