Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def load_vectorstore(site):
|
|
45 |
|
46 |
emb = HuggingFaceEmbeddings(model_name="all-mpnet-base-v2")
|
47 |
|
48 |
-
vectorstore = FAISS.load_local(site_options[site], emb)
|
49 |
|
50 |
return vectorstore.as_retriever(search_kwargs={"k": 4})
|
51 |
|
|
|
45 |
|
46 |
emb = HuggingFaceEmbeddings(model_name="all-mpnet-base-v2")
|
47 |
|
48 |
+
vectorstore = FAISS.load_local(site_options[site], emb,allow_dangerous_deserialization=True)
|
49 |
|
50 |
return vectorstore.as_retriever(search_kwargs={"k": 4})
|
51 |
|