Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Renaming environ variable
Browse filesCloning this repo suggests that the environment variable should be TOKEN, not HF_TOKEN.
This also matches the token name on the frontend.
- src/envs.py +1 -1
src/envs.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import HfApi
|
|
4 |
|
5 |
# Info to change for your repository
|
6 |
# ----------------------------------
|
7 |
-
TOKEN = os.environ.get("
|
8 |
|
9 |
OWNER = "demo-leaderboard-backend" # Change to your org - don't forget to create a results and request dataset
|
10 |
|
|
|
4 |
|
5 |
# Info to change for your repository
|
6 |
# ----------------------------------
|
7 |
+
TOKEN = os.environ.get("TOKEN") # A read/write token for your org
|
8 |
|
9 |
OWNER = "demo-leaderboard-backend" # Change to your org - don't forget to create a results and request dataset
|
10 |
|