Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def pdf_changes(pdf_doc):
|
|
21 |
|
22 |
loader = OnlinePDFLoader(pdf_doc.name)
|
23 |
documents = loader.load()
|
24 |
-
text_splitter = CharacterTextSplitter(chunk_size=
|
25 |
texts = text_splitter.split_documents(documents)
|
26 |
embeddings = HuggingFaceHubEmbeddings()
|
27 |
db = Chroma.from_documents(texts, embeddings)
|
|
|
21 |
|
22 |
loader = OnlinePDFLoader(pdf_doc.name)
|
23 |
documents = loader.load()
|
24 |
+
text_splitter = CharacterTextSplitter(chunk_size=350, chunk_overlap=0)
|
25 |
texts = text_splitter.split_documents(documents)
|
26 |
embeddings = HuggingFaceHubEmbeddings()
|
27 |
db = Chroma.from_documents(texts, embeddings)
|