Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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 |
|