Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ os.environ["OPENAI_API_KEY"] = os.environ['my_secret']
|
|
21 |
loader = PyPDFLoader("/home/user/app/docs.pdf")
|
22 |
documents = loader.load()
|
23 |
|
24 |
-
text_splitter = CharacterTextSplitter(chunk_size=
|
25 |
texts = text_splitter.split_documents(documents)
|
26 |
|
27 |
#vector embedding
|
|
|
21 |
loader = PyPDFLoader("/home/user/app/docs.pdf")
|
22 |
documents = loader.load()
|
23 |
|
24 |
+
text_splitter = CharacterTextSplitter(chunk_size=800, chunk_overlap=0)
|
25 |
texts = text_splitter.split_documents(documents)
|
26 |
|
27 |
#vector embedding
|