Update app.py
Browse files
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"
|
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
|