Spaces:
Runtime error
Runtime error
Update src/envs.py
Browse files- src/envs.py +2 -2
src/envs.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
from huggingface_hub import HfApi
|
4 |
|
5 |
# clone / pull the lmeh eval data
|
6 |
-
|
7 |
|
8 |
REPO_ID = "HuggingFaceH4/open_llm_leaderboard"
|
9 |
QUEUE_REPO = "open-llm-leaderboard/requests"
|
@@ -29,4 +29,4 @@ RATE_LIMIT_PERIOD = 7
|
|
29 |
RATE_LIMIT_QUOTA = 5
|
30 |
HAS_HIGHER_RATE_LIMIT = ["TheBloke"]
|
31 |
|
32 |
-
API = HfApi(token=
|
|
|
3 |
from huggingface_hub import HfApi
|
4 |
|
5 |
# clone / pull the lmeh eval data
|
6 |
+
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
7 |
|
8 |
REPO_ID = "HuggingFaceH4/open_llm_leaderboard"
|
9 |
QUEUE_REPO = "open-llm-leaderboard/requests"
|
|
|
29 |
RATE_LIMIT_QUOTA = 5
|
30 |
HAS_HIGHER_RATE_LIMIT = ["TheBloke"]
|
31 |
|
32 |
+
API = HfApi(token=HF_TOKEN)
|