Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from langchain_openai import ChatOpenAI
|
|
8 |
|
9 |
# Load the FAISS index from the .pkl file
|
10 |
with open("index.pkl", "rb") as f:
|
11 |
-
db =
|
12 |
|
13 |
def get_response_from_query(db, query, k=3):
|
14 |
|
|
|
8 |
|
9 |
# Load the FAISS index from the .pkl file
|
10 |
with open("index.pkl", "rb") as f:
|
11 |
+
db = faiss.deserialize_index(f.read())
|
12 |
|
13 |
def get_response_from_query(db, query, k=3):
|
14 |
|