aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-01 14:01:29 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-05-01 14:01:29 +0300
commitf57445f7c4456312b718b588946c829a984e0f18 (patch)
tree1a7ab73a633a961654bc7ce3ac72609b1c0121ae /modules/ui.py
parent74d249f6dda1406abe99a61509a7aff6673eadbc (diff)
parent67f5c2abb0a9293245de5f00f0b8cd82e2a7cdd0 (diff)
Merge branch 'release_candidate' into dev
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 9ff4bcd9..7b45f131 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -810,7 +810,10 @@ def create_ui():
scale_by.release(**on_change_args)
button_update_resize_to.click(**on_change_args)
- for component in img2img_image_inputs:
+ # the code below is meant to update the resolution label after the image in the image selection UI has changed.
+ # as it is now the event keeps firing continuously for inpaint edits, which ruins the page with constant requests.
+ # I assume this must be a gradio bug and for now we'll just do it for non-inpaint inputs.
+ for component in [init_img, sketch]:
component.change(fn=lambda: None, _js="updateImg2imgResizeToTextAfterChangingImage", inputs=[], outputs=[], show_progress=False)
tab_scale_to.select(fn=lambda: 0, inputs=[], outputs=[selected_scale_tab])