Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ if "vector" not in st.session_state:
|
|
| 43 |
|
| 44 |
# st.session_state.loader = WebBaseLoader("https://paulgraham.com/greatwork.html") # ORIGINAL
|
| 45 |
# st.session_state.docs = st.session_state.loader.load() # ORIGINAL
|
| 46 |
-
pdf_file_path = ""
|
| 47 |
st.session_state.loader = PyPDFLoader(file_path=pdf_file_path).load() # JB
|
| 48 |
# chunks = self.text_splitter.split_documents(docs)
|
| 49 |
# chunks = filter_complex_metadata(chunks)
|
|
|
|
| 43 |
|
| 44 |
# st.session_state.loader = WebBaseLoader("https://paulgraham.com/greatwork.html") # ORIGINAL
|
| 45 |
# st.session_state.docs = st.session_state.loader.load() # ORIGINAL
|
| 46 |
+
pdf_file_path = "*.pdf" # JB
|
| 47 |
st.session_state.loader = PyPDFLoader(file_path=pdf_file_path).load() # JB
|
| 48 |
# chunks = self.text_splitter.split_documents(docs)
|
| 49 |
# chunks = filter_complex_metadata(chunks)
|