diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-17 07:31:16 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-17 07:31:16 +0000 |
commit | 1466daeafc1cc9dcf0319012a6ec6129d51ebd2c (patch) | |
tree | 7af9482f35d87748c6403af201b492fe71bda1a2 /modules/ui_toprow.py | |
parent | dd1641ecc4bbbdf2c319fb32a3250a8e16dd8c77 (diff) | |
download | stable-diffusion-webui-gfx803-1466daeafc1cc9dcf0319012a6ec6129d51ebd2c.tar.gz stable-diffusion-webui-gfx803-1466daeafc1cc9dcf0319012a6ec6129d51ebd2c.tar.bz2 stable-diffusion-webui-gfx803-1466daeafc1cc9dcf0319012a6ec6129d51ebd2c.zip |
Disable prompt token counters option actually disables token counting rather than just hiding results.
Disable prompt token counters option does not require reload UI.
token counters do not become visible until they are positioned correctly.
Diffstat (limited to 'modules/ui_toprow.py')
-rw-r--r-- | modules/ui_toprow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_toprow.py b/modules/ui_toprow.py index 30cf1b1b..dc3c3aa3 100644 --- a/modules/ui_toprow.py +++ b/modules/ui_toprow.py @@ -127,9 +127,9 @@ class Toprow: self.restore_progress_button = ToolButton(value=restore_progress_symbol, elem_id=f"{self.id_part}_restore_progress", visible=False, tooltip="Restore progress")
- self.token_counter = gr.HTML(value="<span>0/75</span>", elem_id=f"{self.id_part}_token_counter", elem_classes=["token-counter"])
+ self.token_counter = gr.HTML(value="<span>0/75</span>", elem_id=f"{self.id_part}_token_counter", elem_classes=["token-counter"], visible=False)
self.token_button = gr.Button(visible=False, elem_id=f"{self.id_part}_token_button")
- self.negative_token_counter = gr.HTML(value="<span>0/75</span>", elem_id=f"{self.id_part}_negative_token_counter", elem_classes=["token-counter"])
+ self.negative_token_counter = gr.HTML(value="<span>0/75</span>", elem_id=f"{self.id_part}_negative_token_counter", elem_classes=["token-counter"], visible=False)
self.negative_token_button = gr.Button(visible=False, elem_id=f"{self.id_part}_negative_token_button")
self.clear_prompt_button.click(
|