Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
@@ -442,7 +442,7 @@ except Exception as e:
|
|
442 |
# Load FAISS index properly
|
443 |
# -----------------------------
|
444 |
# Ensure the directory path is correct and points to the index file directly
|
445 |
-
index_path = "/home/wendy/my_hf_agent_course_projects/faiss_index
|
446 |
try:
|
447 |
loaded_store = FAISS.load_local(index_path, embedding_model, allow_dangerous_deserialization=True)
|
448 |
print("FAISS index loaded successfully")
|
|
|
442 |
# Load FAISS index properly
|
443 |
# -----------------------------
|
444 |
# Ensure the directory path is correct and points to the index file directly
|
445 |
+
index_path = "/home/wendy/my_hf_agent_course_projects/faiss_index"
|
446 |
try:
|
447 |
loaded_store = FAISS.load_local(index_path, embedding_model, allow_dangerous_deserialization=True)
|
448 |
print("FAISS index loaded successfully")
|