Upload app_federal.py
Browse files- app_federal.py +1 -1
app_federal.py
CHANGED
@@ -334,7 +334,7 @@ faiss_index = load_faiss_index(ds["embeddings"])
|
|
334 |
|
335 |
url = "https://huggingface.co/datasets/ai-law-society-lab/autofaiss-federal-index/"
|
336 |
faiss_index = "/Users/ds8100/Documents/NJ-caselaw-index/federal-index-faiss/knn.index"
|
337 |
-
file_path = hf_hub_download(repo_id=repo_id, filename="knn.index", repo_type="dataset", os.getenv('hf_token'))
|
338 |
|
339 |
index = faiss.read_index(file_path)
|
340 |
|
|
|
334 |
|
335 |
url = "https://huggingface.co/datasets/ai-law-society-lab/autofaiss-federal-index/"
|
336 |
faiss_index = "/Users/ds8100/Documents/NJ-caselaw-index/federal-index-faiss/knn.index"
|
337 |
+
file_path = hf_hub_download(repo_id=repo_id, filename="knn.index", repo_type="dataset", token=os.getenv('hf_token'))
|
338 |
|
339 |
index = faiss.read_index(file_path)
|
340 |
|