fffiloni commited on
Commit
3fa6349
β€’
1 Parent(s): ec3e3dc

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, repo_id):
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=300, chunk_overlap=0)
25
  texts = text_splitter.split_documents(documents)
26
  embeddings = HuggingFaceHubEmbeddings()
27
  db = Chroma.from_documents(texts, embeddings)