danicafisher commited on
Commit
5023418
·
verified ·
1 Parent(s): f0ff57f

Update helper_functions.py

Browse files
Files changed (1) hide show
  1. helper_functions.py +1 -1
helper_functions.py CHANGED
@@ -11,7 +11,7 @@ def process_file(file):
11
 
12
  documents = []
13
  if file.path.endswith(".pdf"):
14
- loader = PyPDFLoader(temp_file)
15
  docs = loader.load()
16
  documents.extend(docs)
17
  else:
 
11
 
12
  documents = []
13
  if file.path.endswith(".pdf"):
14
+ loader = PyMuPDF(temp_file)
15
  docs = loader.load()
16
  documents.extend(docs)
17
  else: