pedrogengo commited on
Commit
72bf34a
·
verified ·
1 Parent(s): 3efcaca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -245,7 +245,7 @@ def get_results(tokenizer_name, base_lang, comp_lang):
245
  adverb = "more"
246
  token_ratio = (token_ratio - 1.) * 100
247
 
248
- output = f"You need {token_ratio}% {adverb} tokens to represent your text in {comp_lang} than in {base_lang}."
249
  return output
250
 
251
 
 
245
  adverb = "more"
246
  token_ratio = (token_ratio - 1.) * 100
247
 
248
+ output = f"You need {round(token_ratio, 3)}% {adverb} tokens to represent your text in {comp_lang} than in {base_lang}."
249
  return output
250
 
251