Cheselle commited on
Commit
0f36785
1 Parent(s): a3bbd7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,14 +22,14 @@ import chainlit as cl
22
  load_dotenv()
23
 
24
 
25
- document = PyMuPDFLoader(file_path="sk-proj-eIwEnyq0pSHm0s3yiMdZT3BlbkFJ2aeAlVApXY6jveE8aJ9t").load()
26
 
27
 
28
 
29
  def metadata_generator(document, name):
30
  fixed_text_splitter = RecursiveCharacterTextSplitter(
31
- chunk_size=500,
32
- chunk_overlap=100,
33
  separators=["\n\n", "\n", ".", "!", "?"]
34
  )
35
  collection = fixed_text_splitter.split_documents(document)
 
22
  load_dotenv()
23
 
24
 
25
+ document = PyMuPDFLoader(file_path="https://hiddenhistorycenter.org/wp-content/uploads/2016/10/PropagandaPersuasion2012.pdf").load()
26
 
27
 
28
 
29
  def metadata_generator(document, name):
30
  fixed_text_splitter = RecursiveCharacterTextSplitter(
31
+ chunk_size=1000,
32
+ chunk_overlap=200,
33
  separators=["\n\n", "\n", ".", "!", "?"]
34
  )
35
  collection = fixed_text_splitter.split_documents(document)