sd_api_pictures: Widen sliders for image size minimum and maximum (#3326)

This commit is contained in:
GuizzyQC 2023-07-26 12:49:46 -04:00 committed by GitHub
parent f24f87cfb0
commit 4b37a2b397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,8 +332,8 @@ def ui():
negative_prompt = gr.Textbox(placeholder=params['negative_prompt'], value=params['negative_prompt'], label='Negative Prompt') negative_prompt = gr.Textbox(placeholder=params['negative_prompt'], value=params['negative_prompt'], label='Negative Prompt')
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
width = gr.Slider(256, 768, value=params['width'], step=64, label='Width') width = gr.Slider(64, 2048, value=params['width'], step=64, label='Width')
height = gr.Slider(256, 768, value=params['height'], step=64, label='Height') height = gr.Slider(64, 2048, value=params['height'], step=64, label='Height')
with gr.Column(variant="compact", elem_id="sampler_col"): with gr.Column(variant="compact", elem_id="sampler_col"):
with gr.Row(elem_id="sampler_row"): 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'], label='Sampling method', elem_id="sampler_box")