mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 15:16:01 +02:00
fix(ui): initialize max_length before tokenizer block
This commit is contained in:
@@ -439,6 +439,7 @@ def update_token_counter(text: str):
|
||||
from modules.extra_networks import parse_prompt
|
||||
|
||||
count_formatted = '0'
|
||||
max_length = 0
|
||||
visible = False
|
||||
|
||||
prompt, _ = parse_prompt(text)
|
||||
|
||||
Reference in New Issue
Block a user