Update app.py
Browse files
app.py
CHANGED
@@ -67,10 +67,10 @@ if "vector" not in st.session_state:
|
|
67 |
# from langchain_community.document_loaders import MathpixPDFLoader
|
68 |
# loader = MathpixPDFLoader("example_data/layout-parser-paper.pdf")
|
69 |
# data = loader.load()
|
70 |
-
pdf_file_path = "*.pdf"
|
71 |
-
# st.session_state.loader = PyPDFLoader(file_path=pdf_file_path).load()
|
72 |
-
# st.session_state.loader = PyPDFLoader(*.pdf).load()
|
73 |
-
st.session_state.loader = PyPDFDirectoryLoader("")
|
74 |
# chunks = self.text_splitter.split_documents(docs)
|
75 |
# chunks = filter_complex_metadata(chunks)
|
76 |
|
|
|
67 |
# from langchain_community.document_loaders import MathpixPDFLoader
|
68 |
# loader = MathpixPDFLoader("example_data/layout-parser-paper.pdf")
|
69 |
# data = loader.load()
|
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("").load() # JB PyPDFDirectoryLoader("example_data/")
|
74 |
# chunks = self.text_splitter.split_documents(docs)
|
75 |
# chunks = filter_complex_metadata(chunks)
|
76 |
|