Spaces:
Sleeping
Sleeping
Chandranshu Jain
commited on
Commit
•
f3203dc
1
Parent(s):
785158e
Update app.py
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ def get_pdf(uploaded_file):
|
|
49 |
def text_splitter(text):
|
50 |
text_splitter = RecursiveCharacterTextSplitter(
|
51 |
# Set a really small chunk size, just to show.
|
52 |
-
chunk_size=
|
53 |
-
chunk_overlap=
|
54 |
separators=["\n\n","\n"," ",".",","])
|
55 |
chunks=text_splitter.split_documents(text)
|
56 |
return chunks
|
|
|
49 |
def text_splitter(text):
|
50 |
text_splitter = RecursiveCharacterTextSplitter(
|
51 |
# Set a really small chunk size, just to show.
|
52 |
+
chunk_size=100000
|
53 |
+
chunk_overlap=50000,
|
54 |
separators=["\n\n","\n"," ",".",","])
|
55 |
chunks=text_splitter.split_documents(text)
|
56 |
return chunks
|