Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,8 +27,8 @@ def get_pdf_text(pdf_docs):
|
|
| 27 |
def get_text_chunks(text):
|
| 28 |
text_splitter = CharacterTextSplitter(
|
| 29 |
separator="\n",
|
| 30 |
-
chunk_size=
|
| 31 |
-
chunk_overlap=
|
| 32 |
length_function=len
|
| 33 |
)
|
| 34 |
chunks = text_splitter.split_text(text)
|
|
|
|
| 27 |
def get_text_chunks(text):
|
| 28 |
text_splitter = CharacterTextSplitter(
|
| 29 |
separator="\n",
|
| 30 |
+
chunk_size=200,
|
| 31 |
+
chunk_overlap=20,
|
| 32 |
length_function=len
|
| 33 |
)
|
| 34 |
chunks = text_splitter.split_text(text)
|