piyushgrover commited on
Commit
656f8ed
·
verified ·
1 Parent(s): 30a712b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def encode_text_with_compression(hindi_text):
27
 
28
  # Compression ratio
29
  if text_byte_length > 0:
30
- compression_ratio = token_id_length / text_byte_length
31
  else:
32
  compression_ratio = 0 # Handle edge case for empty input
33
 
 
27
 
28
  # Compression ratio
29
  if text_byte_length > 0:
30
+ compression_ratio = text_byte_length / token_id_length
31
  else:
32
  compression_ratio = 0 # Handle edge case for empty input
33