Spaces:
Sleeping
Sleeping
fix hf token variable name
Browse files- app/app.py +2 -3
app/app.py
CHANGED
|
@@ -63,8 +63,7 @@ VECTOR_STORE_DIR = ROOT / "data" / "processed"
|
|
| 63 |
@st.cache_resource
|
| 64 |
def load_vector_store_cached():
|
| 65 |
|
| 66 |
-
|
| 67 |
-
login(token=hf_token, add_to_git_credential=False)
|
| 68 |
VECTOR_STORE_DIR.mkdir(parents=True, exist_ok=True)
|
| 69 |
|
| 70 |
# Skip download if already cached on disk
|
|
@@ -73,7 +72,7 @@ def load_vector_store_cached():
|
|
| 73 |
repo_id="rishadaz/amazon_retriever-storage",
|
| 74 |
repo_type="dataset",
|
| 75 |
local_dir=str(VECTOR_STORE_DIR),
|
| 76 |
-
token=
|
| 77 |
))
|
| 78 |
else:
|
| 79 |
snapshot_path = VECTOR_STORE_DIR
|
|
|
|
| 63 |
@st.cache_resource
|
| 64 |
def load_vector_store_cached():
|
| 65 |
|
| 66 |
+
login(token=HF_TOKEN, add_to_git_credential=False)
|
|
|
|
| 67 |
VECTOR_STORE_DIR.mkdir(parents=True, exist_ok=True)
|
| 68 |
|
| 69 |
# Skip download if already cached on disk
|
|
|
|
| 72 |
repo_id="rishadaz/amazon_retriever-storage",
|
| 73 |
repo_type="dataset",
|
| 74 |
local_dir=str(VECTOR_STORE_DIR),
|
| 75 |
+
token=HF_TOKEN,
|
| 76 |
))
|
| 77 |
else:
|
| 78 |
snapshot_path = VECTOR_STORE_DIR
|