JBHF commited on
Commit
b508627
1 Parent(s): 145f602

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ if "vector" not in st.session_state:
76
 
77
  # JB:
78
  # https://python.langchain.com/docs/modules/data_connection/document_loaders/pdf#pypdf-directory
79
- st.session_state.docs = loader.load()
80
 
81
  st.session_state.text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
82
  st.session_state.documents = st.session_state.text_splitter.split_documents(st.session_state.docs)
 
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
 
81
  st.session_state.text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
82
  st.session_state.documents = st.session_state.text_splitter.split_documents(st.session_state.docs)