mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
sd_api_pictures: fix Gradio warning message regarding custom value (#4391)
This commit is contained in:
parent
92b2f57095
commit
317e2c857e
@ -339,7 +339,7 @@ def ui():
|
||||
height = gr.Slider(64, 2048, value=params['height'], step=64, label='Height')
|
||||
with gr.Column(variant="compact", elem_id="sampler_col"):
|
||||
with gr.Row(elem_id="sampler_row"):
|
||||
sampler_name = gr.Dropdown(value=params['sampler_name'], label='Sampling method', elem_id="sampler_box")
|
||||
sampler_name = gr.Dropdown(value=params['sampler_name'], allow_custom_value=True, label='Sampling method', elem_id="sampler_box")
|
||||
create_refresh_button(sampler_name, lambda: None, lambda: {'choices': get_samplers()}, 'refresh-button')
|
||||
steps = gr.Slider(1, 150, value=params['steps'], step=1, label="Sampling steps", elem_id="steps_box")
|
||||
with gr.Row():
|
||||
|
Loading…
Reference in New Issue
Block a user