aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authortimntorres <timothynarcisotorres@gmail.com>2022-11-04 05:28:22 +0000
committertimntorres <timothynarcisotorres@gmail.com>2022-11-04 05:28:22 +0000
commite533ff61c1baa4ad047f9c8dc05c17b64ee89ddf (patch)
tree3d379bd526cd26bc0e18de3aea756b6913dbb96a /modules/ui.py
parentd98eacea40c7a40227f36dbea9cf92f90489310b (diff)
downloadstable-diffusion-webui-gfx803-e533ff61c1baa4ad047f9c8dc05c17b64ee89ddf.tar.gz
stable-diffusion-webui-gfx803-e533ff61c1baa4ad047f9c8dc05c17b64ee89ddf.tar.bz2
stable-diffusion-webui-gfx803-e533ff61c1baa4ad047f9c8dc05c17b64ee89ddf.zip
Lift extras generate button a la #4246.
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 2609857e..6461002a 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1052,6 +1052,8 @@ def create_ui(wrap_gradio_gpu_call):
extras_batch_output_dir = gr.Textbox(label="Output directory", **shared.hide_dirs, placeholder="Leave blank to save images to the default path.")
show_extras_results = gr.Checkbox(label='Show result images', value=True)
+ submit = gr.Button('Generate', elem_id="extras_generate", variant='primary')
+
with gr.Tabs(elem_id="extras_resize_mode"):
with gr.TabItem('Scale by'):
upscaling_resize = gr.Slider(minimum=1.0, maximum=8.0, step=0.05, label="Resize", value=4)
@@ -1079,8 +1081,6 @@ def create_ui(wrap_gradio_gpu_call):
with gr.Group():
upscale_before_face_fix = gr.Checkbox(label='Upscale Before Restoring Faces', value=False)
- submit = gr.Button('Generate', elem_id="extras_generate", variant='primary')
-
result_images, html_info_x, html_info = create_output_panel("extras", opts.outdir_extras_samples)
submit.click(