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