Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from langchain.vectorstores import Chroma
|
|
16 |
from langchain.chains import RetrievalQA
|
17 |
|
18 |
def pdf_changes(pdf_doc):
|
19 |
-
loader = OnlinePDFLoader(pdf_doc)
|
20 |
documents = loader.load()
|
21 |
texts = text_splitter.split_documents(documents)
|
22 |
db = Chroma.from_documents(texts, embeddings)
|
|
|
16 |
from langchain.chains import RetrievalQA
|
17 |
|
18 |
def pdf_changes(pdf_doc):
|
19 |
+
loader = OnlinePDFLoader(pdf_doc.name)
|
20 |
documents = loader.load()
|
21 |
texts = text_splitter.split_documents(documents)
|
22 |
db = Chroma.from_documents(texts, embeddings)
|