JBHF commited on
Commit
0e47f27
·
verified ·
1 Parent(s): fc4cb3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)