Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def get_pdf_text(pdf_docs):
|
|
25 |
|
26 |
def get_text_chunks(text):
|
27 |
"""Divide el texto extraído en fragmentos manejables."""
|
28 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
29 |
chunks = text_splitter.split_text(text)
|
30 |
return chunks
|
31 |
|
|
|
25 |
|
26 |
def get_text_chunks(text):
|
27 |
"""Divide el texto extraído en fragmentos manejables."""
|
28 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=5000, chunk_overlap=500)
|
29 |
chunks = text_splitter.split_text(text)
|
30 |
return chunks
|
31 |
|