Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,8 @@ if "vector" not in st.session_state:
|
|
97 |
# loader = DirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
98 |
# PyPDFDirectoryLoader (TEST):
|
99 |
# loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
100 |
-
loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_kwargs=text_loader_kwargs)
|
|
|
101 |
docs = loader.load()
|
102 |
st.session_state.docs = docs
|
103 |
|
|
|
97 |
# loader = DirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
98 |
# PyPDFDirectoryLoader (TEST):
|
99 |
# loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
|
100 |
+
# loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_kwargs=text_loader_kwargs)
|
101 |
+
loader = PyPDFDirectoryLoader(path, glob="**/*.pdf")
|
102 |
docs = loader.load()
|
103 |
st.session_state.docs = docs
|
104 |
|