JBHF commited on
Commit
c98dd30
1 Parent(s): d349362

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- # loader = PyPDFDirectoryLoader(path, glob="**/*.pdf", loader_cls=TextLoader, loader_kwargs=text_loader_kwargs)
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