Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,8 @@ def method_get_text_chunks(text):
|
|
26 |
separator="\n",
|
27 |
chunk_size=1000,
|
28 |
chunk_overlap=200,
|
29 |
-
length_function=len
|
|
|
30 |
)
|
31 |
chunks = text_splitter.split_text(text)
|
32 |
return chunks
|
|
|
26 |
separator="\n",
|
27 |
chunk_size=1000,
|
28 |
chunk_overlap=200,
|
29 |
+
length_function=len,
|
30 |
+
is_separator_regex=False,
|
31 |
)
|
32 |
chunks = text_splitter.split_text(text)
|
33 |
return chunks
|