Skip to content

Commit e533ff6

Browse files
committed
Lift extras generate button a la #4246.
1 parent d98eace commit e533ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,8 @@ def create_ui(wrap_gradio_gpu_call):
10521052
extras_batch_output_dir = gr.Textbox(label="Output directory", **shared.hide_dirs, placeholder="Leave blank to save images to the default path.")
10531053
show_extras_results = gr.Checkbox(label='Show result images', value=True)
10541054

1055+
submit = gr.Button('Generate', elem_id="extras_generate", variant='primary')
1056+
10551057
with gr.Tabs(elem_id="extras_resize_mode"):
10561058
with gr.TabItem('Scale by'):
10571059
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):
10791081
with gr.Group():
10801082
upscale_before_face_fix = gr.Checkbox(label='Upscale Before Restoring Faces', value=False)
10811083

1082-
submit = gr.Button('Generate', elem_id="extras_generate", variant='primary')
1083-
10841084
result_images, html_info_x, html_info = create_output_panel("extras", opts.outdir_extras_samples)
10851085

10861086
submit.click(

0 commit comments

Comments
 (0)