From 341c13a4de4485018f9b19918a738ce7db32d02b Mon Sep 17 00:00:00 2001 From: hlky <106811348+hlky@users.noreply.github.com> Date: Wed, 31 Aug 2022 14:17:57 +0100 Subject: [PATCH] #172 --- frontend/frontend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/frontend.py b/frontend/frontend.py index 0c597f8..f11917c 100644 --- a/frontend/frontend.py +++ b/frontend/frontend.py @@ -29,7 +29,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, txt2img_defaul value=txt2img_defaults["height"]) txt2img_cfg = gr.Slider(minimum=-40.0, maximum=30.0, step=0.5, label='Classifier Free Guidance Scale (how strongly the image should follow the prompt)', - value=txt2img_defaults['cfg_scale']) + value=txt2img_defaults['cfg_scale'], elem_id='cfg_slider') txt2img_seed = gr.Textbox(label="Seed (blank to randomize)", lines=1, max_lines=1, value=txt2img_defaults["seed"]) txt2img_batch_count = gr.Slider(minimum=1, maximum=250, step=1, @@ -195,7 +195,7 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, txt2img_defaul img2img_cfg = gr.Slider(minimum=-40.0, maximum=30.0, step=0.5, label='Classifier Free Guidance Scale (how strongly the image should follow the prompt)', - value=img2img_defaults['cfg_scale']) + value=img2img_defaults['cfg_scale'], elem_id='cfg_slider') img2img_seed = gr.Textbox(label="Seed (blank to randomize)", lines=1, max_lines=1, value=img2img_defaults["seed"])