Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def get_conversational_chain():
|
|
| 61 |
def user_input(user_question):
|
| 62 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
| 63 |
|
| 64 |
-
new_db = FAISS.load_local("faiss_index", embeddings)
|
| 65 |
docs = new_db.similarity_search(user_question)
|
| 66 |
|
| 67 |
chain = get_conversational_chain()
|
|
|
|
| 61 |
def user_input(user_question):
|
| 62 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
| 63 |
|
| 64 |
+
new_db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
| 65 |
docs = new_db.similarity_search(user_question)
|
| 66 |
|
| 67 |
chain = get_conversational_chain()
|