mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
Fix display typo
This commit is contained in:
@@ -509,7 +509,7 @@ def update_token_counter(text: str):
|
||||
token_counts = [len(group) - int(has_bos_token) - int(has_eos_token) for group in ids]
|
||||
if len(token_counts) > 1:
|
||||
visible = True
|
||||
count_formatted = f"{token_counts}/{sum(token_counts)}"
|
||||
count_formatted = f"{token_counts} {sum(token_counts)}"
|
||||
elif len(token_counts) == 1 and token_counts[0] > 0:
|
||||
visible = True
|
||||
count_formatted = str(token_counts[0])
|
||||
|
||||
Reference in New Issue
Block a user