reedmayhew commited on
Commit
27f7c68
·
verified ·
1 Parent(s): 02fa10d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- print(max_phrase_length)
 
 
 
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
  """