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