Update app.py
Browse files
app.py
CHANGED
@@ -70,14 +70,14 @@ if "vector" not in st.session_state:
|
|
70 |
# pdf_file_path = "*.pdf" # JB
|
71 |
# st.session_state.loader = PyPDFLoader(file_path=pdf_file_path).load() # JB
|
72 |
# st.session_state.loader = PyPDFLoader(*.pdf).load() # JB syntax error *.pdf !
|
73 |
-
st.session_state.loader = PyPDFDirectoryLoader("*.pdf")
|
74 |
# chunks = self.text_splitter.split_documents(docs)
|
75 |
# chunks = filter_complex_metadata(chunks)
|
76 |
|
77 |
# JB:
|
78 |
# https://python.langchain.com/docs/modules/data_connection/document_loaders/pdf#pypdf-directory
|
79 |
# st.session_state.docs = st.session_state.loader.load()
|
80 |
-
loader = PyPDFDirectoryLoader("
|
81 |
docs = loader.load()
|
82 |
st.session_state.docs = docs
|
83 |
|
|
|
70 |
# pdf_file_path = "*.pdf" # JB
|
71 |
# st.session_state.loader = PyPDFLoader(file_path=pdf_file_path).load() # JB
|
72 |
# st.session_state.loader = PyPDFLoader(*.pdf).load() # JB syntax error *.pdf !
|
73 |
+
# st.session_state.loader = PyPDFDirectoryLoader("*.pdf") # JB PyPDFDirectoryLoader("example_data/")
|
74 |
# chunks = self.text_splitter.split_documents(docs)
|
75 |
# chunks = filter_complex_metadata(chunks)
|
76 |
|
77 |
# JB:
|
78 |
# https://python.langchain.com/docs/modules/data_connection/document_loaders/pdf#pypdf-directory
|
79 |
# st.session_state.docs = st.session_state.loader.load()
|
80 |
+
loader = PyPDFDirectoryLoader(".")
|
81 |
docs = loader.load()
|
82 |
st.session_state.docs = docs
|
83 |
|