Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def get_conversational_chain():
|
|
70 |
def user_input(user_question):
|
71 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
72 |
|
73 |
-
new_db= FAISS.load_local("faiss_index", embeddings)
|
74 |
docs= new_db.similarity_search(user_question)
|
75 |
|
76 |
chain = get_conversational_chain()
|
|
|
70 |
def user_input(user_question):
|
71 |
embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
|
72 |
|
73 |
+
new_db= FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
74 |
docs= new_db.similarity_search(user_question)
|
75 |
|
76 |
chain = get_conversational_chain()
|