aboutsummaryrefslogtreecommitdiff
path: root/modules/ui.py
diff options
context:
space:
mode:
authorxSinStarx <98231899+xSinStarx@users.noreply.github.com>2023-02-20 12:39:38 -0800
committerGitHub <noreply@github.com>2023-02-20 12:39:38 -0800
commitb0f2653541219486c8b8cbdbf8ce80caf3f62ef8 (patch)
treef98292413ccb303e2dcc97a1f316b5d6ebb2d384 /modules/ui.py
parent0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff)
Fixes img2img Negative Token Counter
The img2img negative token counter is counting the txt2img negative prompt.
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 0516c643..a37b1739 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -939,7 +939,7 @@ def create_ui():
)
token_button.click(fn=update_token_counter, inputs=[img2img_prompt, steps], outputs=[token_counter])
- negative_token_button.click(fn=wrap_queued_call(update_token_counter), inputs=[txt2img_negative_prompt, steps], outputs=[negative_token_counter])
+ negative_token_button.click(fn=wrap_queued_call(update_token_counter), inputs=[img2img_negative_prompt, steps], outputs=[negative_token_counter])
ui_extra_networks.setup_ui(extra_networks_ui_img2img, img2img_gallery)