Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization
|
|
35 |
|
36 |
def find_best_page_content(question, keywords, db):
|
37 |
|
38 |
-
db =
|
39 |
results = db.similarity_search(question, k=50, fetch_k=50)
|
40 |
keywords = ', '.join(keywords) #
|
41 |
|
|
|
35 |
|
36 |
def find_best_page_content(question, keywords, db):
|
37 |
|
38 |
+
db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
39 |
results = db.similarity_search(question, k=50, fetch_k=50)
|
40 |
keywords = ', '.join(keywords) #
|
41 |
|