Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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()
|