Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from langchain.vectorstores import FAISS
|
|
| 9 |
from langchain.memory import ConversationBufferMemory
|
| 10 |
|
| 11 |
#load the pdf files from the path
|
| 12 |
-
loader = DirectoryLoader('
|
| 13 |
documents = loader.load()
|
| 14 |
|
| 15 |
#split text into chunks
|
|
|
|
| 9 |
from langchain.memory import ConversationBufferMemory
|
| 10 |
|
| 11 |
#load the pdf files from the path
|
| 12 |
+
loader = DirectoryLoader('/',glob="*.pdf",loader_cls=PyPDFLoader)
|
| 13 |
documents = loader.load()
|
| 14 |
|
| 15 |
#split text into chunks
|