Upload app_federal.py
Browse files- app_federal.py +3 -2
app_federal.py
CHANGED
@@ -332,8 +332,9 @@ faiss_index = load_faiss_index(ds["embeddings"])
|
|
332 |
# repo_id = "ai-law-society-lab/save_OPD_project_output"
|
333 |
# url = "https://huggingface.co/datasets/ai-law-society-lab/save_OPD_project_output"
|
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)
|
|
|
332 |
# repo_id = "ai-law-society-lab/save_OPD_project_output"
|
333 |
# url = "https://huggingface.co/datasets/ai-law-society-lab/save_OPD_project_output"
|
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 |
+
repo_id = "ai-law-society-lab/autofaiss-federal-index"
|
338 |
file_path = hf_hub_download(repo_id=repo_id, filename="knn.index", repo_type="dataset", token=os.getenv('hf_token'))
|
339 |
|
340 |
index = faiss.read_index(file_path)
|