ui: save dropdown sampling method to the ui-config

This commit is contained in:
Max Weber 2023-01-03 18:19:56 -07:00
parent 3e22e29413
commit 917b5bd8d0
No known key found for this signature in database
GPG Key ID: 894C95FE33C09D5A
1 changed files with 1 additions and 0 deletions

View File

@ -635,6 +635,7 @@ def create_sampler_and_steps_selection(choices, tabname):
if opts.samplers_in_dropdown:
with FormRow(elem_id=f"sampler_selection_{tabname}"):
sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value=choices[0].name, type="index")
sampler_index.save_to_config = True
steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{tabname}_steps", label="Sampling Steps", value=20)
else:
with FormGroup(elem_id=f"sampler_selection_{tabname}"):