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