From 82f5c38cf62ebd2f72883a6129bf4a0a954ab0e0 Mon Sep 17 00:00:00 2001 From: James Pound Date: Wed, 7 Sep 2022 21:57:33 -0400 Subject: [PATCH] Fixed aspect ratio box not being updated on txt2img tab, for issue 219 from old repo --- frontend/frontend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/frontend.py b/frontend/frontend.py index d0b973e34..aa98f0797 100644 --- a/frontend/frontend.py +++ b/frontend/frontend.py @@ -130,8 +130,8 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x,imgproc=lambda txt2img_outputs ) - # txt2img_width.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box) - # txt2img_height.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box) + txt2img_width.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box) + txt2img_height.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box) live_prompt_params = [txt2img_prompt, txt2img_width, txt2img_height, txt2img_steps, txt2img_seed, txt2img_batch_count, txt2img_cfg] txt2img_prompt.change(