JUNGU commited on
Commit
b413ae6
1 Parent(s): 2faa900

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ os.environ["OPENAI_API_KEY"] = os.environ['my_secret']
18
  loader = PyPDFLoader("/home/user/app/docs.pdf")
19
  documents = loader.load()
20
 
21
- text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
22
  texts = text_splitter.split_documents(documents)
23
 
24
  #vector embedding
 
18
  loader = PyPDFLoader("/home/user/app/docs.pdf")
19
  documents = loader.load()
20
 
21
+ text_splitter = CharacterTextSplitter(chunk_size=800, chunk_overlap=0)
22
  texts = text_splitter.split_documents(documents)
23
 
24
  #vector embedding