danicafisher commited on
Commit
5d6be6a
·
verified ·
1 Parent(s): 638fc22

Update helper_functions.py

Browse files
Files changed (1) hide show
  1. helper_functions.py +1 -1
helper_functions.py CHANGED
@@ -3,7 +3,7 @@ from langchain_community.vectorstores import Qdrant
3
 
4
  def process_file(file):
5
  documents = []
6
- if file.path.endswith(".pdf"):
7
  loader = PyMuPDFLoader(file)
8
  docs = loader.load()
9
  documents.extend(docs)
 
3
 
4
  def process_file(file):
5
  documents = []
6
+ if file.name.endswith(".pdf"):
7
  loader = PyMuPDFLoader(file)
8
  docs = loader.load()
9
  documents.extend(docs)