Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ def get_pdf(uploaded_file):
|
|
46 |
def text_splitter(text):
|
47 |
text_splitter = RecursiveCharacterTextSplitter(
|
48 |
# Set a really small chunk size, just to show.
|
49 |
-
chunk_size=
|
50 |
-
chunk_overlap=
|
51 |
separators=["\n\n","\n"," ",".",","])
|
52 |
chunks=text_splitter.split_documents(text)
|
53 |
return chunks
|
|
|
46 |
def text_splitter(text):
|
47 |
text_splitter = RecursiveCharacterTextSplitter(
|
48 |
# Set a really small chunk size, just to show.
|
49 |
+
chunk_size=1000,
|
50 |
+
chunk_overlap=500,
|
51 |
separators=["\n\n","\n"," ",".",","])
|
52 |
chunks=text_splitter.split_documents(text)
|
53 |
return chunks
|