patriotyk commited on
Commit
f3d6b6d
·
verified ·
1 Parent(s): 176b264

Update app.py

Browse files

Join only really small sentences.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def split_to_parts(text):
26
  index = 0
27
  for s in text:
28
  parts[index] += s
29
- if s in split_symbols and len(parts[index]) > 150:
30
  index += 1
31
  parts.append('')
32
  return parts
 
26
  index = 0
27
  for s in text:
28
  parts[index] += s
29
+ if s in split_symbols and len(parts[index]) > 20:
30
  index += 1
31
  parts.append('')
32
  return parts