jybae commited on
Commit
6d682b9
·
verified ·
1 Parent(s): c5fe01d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.deserialize_index(f.read())
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