Spaces:
Runtime error
Runtime error
pedrogengo
commited on
Update app.py
Browse files
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 |
|