Update app.py
Browse files
app.py
CHANGED
|
@@ -28,9 +28,9 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
| 28 |
REPO_ID = "hazutecuhtli/mori_faiss_full"
|
| 29 |
|
| 30 |
# Descarga de archivos privados
|
| 31 |
-
faiss_path = hf_hub_download(repo_id=REPO_ID, filename="mori.faiss", repo_type="dataset", token=
|
| 32 |
-
ids_path = hf_hub_download(repo_id=REPO_ID, filename="mori_ids.npy", repo_type="dataset", token=
|
| 33 |
-
meta_path = hf_hub_download(repo_id=REPO_ID, filename="mori_metas.json", repo_type="dataset", token=
|
| 34 |
|
| 35 |
# Carga de FAISS y metadatos
|
| 36 |
index = faiss.read_index(faiss_path)
|
|
|
|
| 28 |
REPO_ID = "hazutecuhtli/mori_faiss_full"
|
| 29 |
|
| 30 |
# Descarga de archivos privados
|
| 31 |
+
faiss_path = hf_hub_download(repo_id=REPO_ID, filename="mori.faiss", repo_type="dataset", token=HF_TOKEN)
|
| 32 |
+
ids_path = hf_hub_download(repo_id=REPO_ID, filename="mori_ids.npy", repo_type="dataset", token=HF_TOKEN)
|
| 33 |
+
meta_path = hf_hub_download(repo_id=REPO_ID, filename="mori_metas.json", repo_type="dataset", token=HF_TOKEN)
|
| 34 |
|
| 35 |
# Carga de FAISS y metadatos
|
| 36 |
index = faiss.read_index(faiss_path)
|