BHO commited on
Commit
237f9b7
1 Parent(s): 905319c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def qa_system(pdf_file, openai_key, prompt, chain_type, k):
23
 
24
  # load document
25
  # loader = PyPDFLoader(pdf_file.name)
26
- loader = DirectoryLoader(dir_path, glob="**/*.pdf", loader_cls=PDFLoader)
27
  documents = loader.load()
28
 
29
  # split the documents into chunks
 
23
 
24
  # load document
25
  # loader = PyPDFLoader(pdf_file.name)
26
+ loader = DirectoryLoader(dir_path, glob="**/*.pdf") #, loader_cls=PDFLoader)
27
  documents = loader.load()
28
 
29
  # split the documents into chunks