JBHF commited on
Commit
f4b9e89
1 Parent(s): ecb159f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -121,7 +121,11 @@ if "vector" not in st.session_state:
121
 
122
  # st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
123
  # st.session_state.vector.save_local("faiss_index")
124
- st.session_state.vector = FAISS.load_local("faiss_index", st.session_state.embeddings)
 
 
 
 
125
 
126
  # ZIE:
127
  # ZIE VOOR EEN APP MET CHROMADB:
 
121
 
122
  # st.session_state.vector = FAISS.from_documents(st.session_state.documents, st.session_state.embeddings) # ORIGINAL
123
  # st.session_state.vector.save_local("faiss_index")
124
+ # The de-serialization relies loading a pickle file.
125
+ # Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.
126
+ # You will need to set `allow_dangerous_deserialization` to `True` to enable deserialization. If you do this, make sure that you trust the source of the data.
127
+
128
+ st.session_state.vector = FAISS.load_local("faiss_index", st.session_state.embeddings, allow_dangerous_deserialization=True)
129
 
130
  # ZIE:
131
  # ZIE VOOR EEN APP MET CHROMADB: