Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def chunks_of_900(text, chunk_size=900):
|
|
23 |
current_chunk = ""
|
24 |
for sentence in sentences:
|
25 |
if len(current_chunk + sentence) <= chunk_size:
|
26 |
-
current_chunk += sentence
|
27 |
else:
|
28 |
chunks.append(current_chunk)
|
29 |
current_chunk = sentence
|
|
|
23 |
current_chunk = ""
|
24 |
for sentence in sentences:
|
25 |
if len(current_chunk + sentence) <= chunk_size:
|
26 |
+
current_chunk += " " + sentence
|
27 |
else:
|
28 |
chunks.append(current_chunk)
|
29 |
current_chunk = sentence
|