fffiloni commited on
Commit
596e8fa
1 Parent(s): eeb525d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=1000, chunk_overlap=0)
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)