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