jybae commited on
Commit
200ff9c
·
verified ·
1 Parent(s): b543cf9

Update app.py

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