JBHF commited on
Commit
0945673
1 Parent(s): b5f8204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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" # 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("") # JB PyPDFDirectoryLoader("example_data/")
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