Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ with open("FYP RAG/summerization-app/data/legal_data.pkl", "rb") as f:
|
|
| 52 |
faiss_indices = {}
|
| 53 |
for law in legal_data:
|
| 54 |
try:
|
| 55 |
-
index_path = f"data/{law.replace(' ', '_')}_faiss.index"
|
| 56 |
index = faiss.read_index(index_path)
|
| 57 |
faiss_indices[law] = (index, legal_data[law])
|
| 58 |
except Exception as e:
|
|
|
|
| 52 |
faiss_indices = {}
|
| 53 |
for law in legal_data:
|
| 54 |
try:
|
| 55 |
+
index_path = f"FYP RAG/summerization-app/data/{law.replace(' ', '_')}_faiss.index"
|
| 56 |
index = faiss.read_index(index_path)
|
| 57 |
faiss_indices[law] = (index, legal_data[law])
|
| 58 |
except Exception as e:
|