Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,12 @@ embeddings = HuggingFaceEmbeddings(
|
|
30 |
)
|
31 |
|
32 |
|
|
|
|
|
|
|
33 |
def find_best_page_content(question, keywords, db):
|
34 |
|
35 |
-
db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
36 |
results = db.similarity_search(question, k=50, fetch_k=50)
|
37 |
keywords = ', '.join(keywords) #
|
38 |
|
|
|
30 |
)
|
31 |
|
32 |
|
33 |
+
db = FAISS.load_local("MSEAJYTHTH/NFPC/faiss_index", embeddings, allow_dangerous_deserialization=True)
|
34 |
+
|
35 |
+
|
36 |
def find_best_page_content(question, keywords, db):
|
37 |
|
38 |
+
db = FAISS.load_local("MSEAJYTHTH/NFPC/faiss_index", embeddings, allow_dangerous_deserialization=True)
|
39 |
results = db.similarity_search(question, k=50, fetch_k=50)
|
40 |
keywords = ', '.join(keywords) #
|
41 |
|