Update app.py
Browse files
app.py
CHANGED
@@ -90,6 +90,7 @@ if "vector" not in st.session_state:
|
|
90 |
# JB:
|
91 |
# https://python.langchain.com/docs/modules/data_connection/document_loaders/file_directory
|
92 |
text_loader_kwargs={'autodetect_encoding': True}
|
|
|
93 |
loader = DirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
94 |
# PyPDFDirectoryLoader (TEST):
|
95 |
# loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
|
|
90 |
# JB:
|
91 |
# https://python.langchain.com/docs/modules/data_connection/document_loaders/file_directory
|
92 |
text_loader_kwargs={'autodetect_encoding': True}
|
93 |
+
path = '../'
|
94 |
loader = DirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
95 |
# PyPDFDirectoryLoader (TEST):
|
96 |
# loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|