Fix display typo

This commit is contained in:
awsr
2026-04-22 15:19:46 -07:00
parent 21b34a6fa7
commit b18de2e9b5
+1 -1
View File
@@ -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])