Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ from huggingface_hub import login, list_repo_files, hf_hub_download
|
|
| 26 |
# ----------------------------------------------------------------------
|
| 27 |
# Auth (Space secret) -- gated checkpoint download needs this at startup.
|
| 28 |
# ----------------------------------------------------------------------
|
| 29 |
-
HF_TOKEN = os.environ.get("
|
| 30 |
if HF_TOKEN:
|
| 31 |
login(token=HF_TOKEN)
|
| 32 |
print("Logged in to Hugging Face using HF_TOKEN secret.")
|
|
|
|
| 26 |
# ----------------------------------------------------------------------
|
| 27 |
# Auth (Space secret) -- gated checkpoint download needs this at startup.
|
| 28 |
# ----------------------------------------------------------------------
|
| 29 |
+
HF_TOKEN = os.environ.get("hf_token")
|
| 30 |
if HF_TOKEN:
|
| 31 |
login(token=HF_TOKEN)
|
| 32 |
print("Logged in to Hugging Face using HF_TOKEN secret.")
|