Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def retrieve_document(query):
|
|
| 87 |
print(f"Error fetching metadata: {metadata_.status_code} - {metadata_.text}")
|
| 88 |
return None
|
| 89 |
|
| 90 |
-
|
| 91 |
# Load FAISS index from binary response content
|
| 92 |
index = faiss.read_index_from_buffer(embeddings_.content)
|
| 93 |
print(f"Successfully loaded FAISS index with {index.ntotal} vectors.")
|
|
|
|
| 87 |
print(f"Error fetching metadata: {metadata_.status_code} - {metadata_.text}")
|
| 88 |
return None
|
| 89 |
|
| 90 |
+
try:
|
| 91 |
# Load FAISS index from binary response content
|
| 92 |
index = faiss.read_index_from_buffer(embeddings_.content)
|
| 93 |
print(f"Successfully loaded FAISS index with {index.ntotal} vectors.")
|