Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_conversational_chain():
|
|
35 |
def user_input(user_question):
|
36 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
37 |
|
38 |
-
new_db = FAISS.load_local("./
|
39 |
docs = new_db.similarity_search(user_question)
|
40 |
|
41 |
chain = get_conversational_chain()
|
|
|
35 |
def user_input(user_question):
|
36 |
embeddings = GoogleGenerativeAIEmbeddings(model = "models/embedding-001")
|
37 |
|
38 |
+
new_db = FAISS.load_local("./faiss_index", embeddings, allow_dangerous_deserialization=True)
|
39 |
docs = new_db.similarity_search(user_question)
|
40 |
|
41 |
chain = get_conversational_chain()
|