fffiloni commited on
Commit
7432eb1
1 Parent(s): 4516329

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)