Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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
|