Spaces:
Runtime error
Runtime error
address faiss load local error
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def get_similar_links(query, db, embeddings):
|
|
| 44 |
|
| 45 |
|
| 46 |
embedding_vector = get_hugging_face_model()
|
| 47 |
-
db = FAISS.load_local("code_sim_index", embedding_vector)
|
| 48 |
|
| 49 |
st.title("📒 DSASearch Engine 🤖 ")
|
| 50 |
text_input = st.text_area("Enter a Code Example", value =
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
embedding_vector = get_hugging_face_model()
|
| 47 |
+
db = FAISS.load_local("code_sim_index", embedding_vector, allow_dangerous_deserialization=True)
|
| 48 |
|
| 49 |
st.title("📒 DSASearch Engine 🤖 ")
|
| 50 |
text_input = st.text_area("Enter a Code Example", value =
|