Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,10 @@ replacements = [
|
|
54 |
|
55 |
# Calculate the maximum length of any phrase.
|
56 |
max_phrase_length = max(len(phrase) for phrase, _ in replacements)
|
57 |
-
|
|
|
|
|
|
|
58 |
|
59 |
def apply_replacements(text):
|
60 |
"""
|
|
|
54 |
|
55 |
# Calculate the maximum length of any phrase.
|
56 |
max_phrase_length = max(len(phrase) for phrase, _ in replacements)
|
57 |
+
|
58 |
+
MIN_FLUSH_SIZE = max(50, max_phrase_length * 2)
|
59 |
+
|
60 |
+
print(MIN_FLUSH_SIZE)
|
61 |
|
62 |
def apply_replacements(text):
|
63 |
"""
|