Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ embeddings = OpenAIEmbeddings(openai_api_key=openai_api_key)
|
|
26 |
#with open("index.pkl", "rb") as f:
|
27 |
#db = faiss.deserialize_index(f.read())
|
28 |
|
29 |
-
db = FAISS.load_local("index.pkl", embeddings)
|
30 |
|
31 |
def get_response_from_query(db, query, k=3):
|
32 |
|
|
|
26 |
#with open("index.pkl", "rb") as f:
|
27 |
#db = faiss.deserialize_index(f.read())
|
28 |
|
29 |
+
db = FAISS.load_local("index.pkl", embeddings, allow_dangerous_deserialization=True)
|
30 |
|
31 |
def get_response_from_query(db, query, k=3):
|
32 |
|