Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def get_conversational_chain():
|
|
| 87 |
def user_input(user_question):
|
| 88 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
| 89 |
|
| 90 |
-
new_db = FAISS.load_local("faiss_index", embeddings)
|
| 91 |
docs = new_db.similarity_search(user_question)
|
| 92 |
|
| 93 |
chain = get_conversational_chain()
|
|
|
|
| 87 |
def user_input(user_question):
|
| 88 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
| 89 |
|
| 90 |
+
new_db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
| 91 |
docs = new_db.similarity_search(user_question)
|
| 92 |
|
| 93 |
chain = get_conversational_chain()
|