diff options
author | innovaciones <sonygarcia99@gmail.com> | 2022-09-21 17:51:23 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-22 05:12:10 +0000 |
commit | 70e39f6cfea215197db7b1298ab4c45d5c03a40d (patch) | |
tree | 3ed5ea7846046beebe119f26156de8c0be3f4e3d /modules/ui.py | |
parent | 12622105dc54f8904842e098a6e6dda7dace3d38 (diff) | |
download | stable-diffusion-webui-gfx803-70e39f6cfea215197db7b1298ab4c45d5c03a40d.tar.gz stable-diffusion-webui-gfx803-70e39f6cfea215197db7b1298ab4c45d5c03a40d.tar.bz2 stable-diffusion-webui-gfx803-70e39f6cfea215197db7b1298ab4c45d5c03a40d.zip |
Use generate button as progress bar
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/ui.py b/modules/ui.py index e3cd7f3a..88b6ec30 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -350,7 +350,11 @@ def create_toprow(is_img2img): with gr.Column(scale=1):
with gr.Row():
+ progressbar = gr.HTML(elem_id="progressbar")
submit = gr.Button('Generate', elem_id="generate", variant='primary')
+
+ txt2img_preview = gr.Image(elem_id='txt2img_preview', visible=False)
+ setup_progressbar(progressbar, txt2img_preview)
with gr.Row():
if is_img2img:
@@ -416,14 +420,11 @@ def create_ui(txt2img, img2img, run_extras, run_pnginfo): custom_inputs = modules.scripts.scripts_txt2img.setup_ui(is_img2img=False)
with gr.Column(variant='panel'):
- progressbar = gr.HTML(elem_id="progressbar")
with gr.Group():
txt2img_preview = gr.Image(elem_id='txt2img_preview', visible=False)
txt2img_gallery = gr.Gallery(label='Output', elem_id='txt2img_gallery').style(grid=4)
- setup_progressbar(progressbar, txt2img_preview)
-
with gr.Group():
with gr.Row():
save = gr.Button('Save')
|