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