ubermenchh commited on
Commit
51f56ae
1 Parent(s): a205019

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def loading_pdf(): return 'Loading...'
11
  def pdf_changes(pdf_doc, repo_id):
12
  loader = OnlinePDFLoader(pdf_doc.name)
13
  documents = loader.load()
14
- text_splitter = CharacterTextSplitter(chunk_size=1024, chunk_overlap=0)
15
  texts = text_splitter.split_documents(documents)
16
  embeddings = HuggingFaceHubEmbeddings()
17
  db = Chroma.from_documents(texts, embeddings)
 
11
  def pdf_changes(pdf_doc, repo_id):
12
  loader = OnlinePDFLoader(pdf_doc.name)
13
  documents = loader.load()
14
+ text_splitter = CharacterTextSplitter(chunk_size=2096, chunk_overlap=0)
15
  texts = text_splitter.split_documents(documents)
16
  embeddings = HuggingFaceHubEmbeddings()
17
  db = Chroma.from_documents(texts, embeddings)