basantcuraj commited on
Commit
21b87ce
·
verified ·
1 Parent(s): 8d47574

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def get_conversational_chain():
65
  def user_input(user_question):
66
  embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001", google_api_key='AIzaSyAZ6yZYDu8cbdpm1_4XmvWLQIy7PkUR5-M')
67
 
68
- new_db = FAISS.load_local("faiss_index", embeddings)
69
  docs = new_db.similarity_search(user_question)
70
 
71
  chain = get_conversational_chain()
 
65
  def user_input(user_question):
66
  embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001", google_api_key='AIzaSyAZ6yZYDu8cbdpm1_4XmvWLQIy7PkUR5-M')
67
 
68
+ new_db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
69
  docs = new_db.similarity_search(user_question)
70
 
71
  chain = get_conversational_chain()