Daryl Lim Claude Opus 4.6 (1M context) commited on
Commit
5c5f600
·
1 Parent(s): 61b1462

fix: comma-format character count for consistency

Browse files

Display count as "1,234 / 2,000" instead of "1234 / 2,000" to match
the comma-formatted limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def translate(
89
  def _format_info(char_count: int) -> str:
90
  return (
91
  f'<p style="font-size: var(--block-info-text-size); color: var(--block-info-text-color); margin: 4px 0 0 0;">'
92
- f"Press Ctrl+Enter to apply · {char_count} / 2,000"
93
  f"</p>"
94
  )
95
 
 
89
  def _format_info(char_count: int) -> str:
90
  return (
91
  f'<p style="font-size: var(--block-info-text-size); color: var(--block-info-text-color); margin: 4px 0 0 0;">'
92
+ f"Press Ctrl+Enter to apply · {char_count:,} / 2,000"
93
  f"</p>"
94
  )
95