Spaces:
Sleeping
Sleeping
Download envs.py from alinf/leaderboard: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/alinf/leaderboard/resolve/main/envs.py
- Command line
-
hf download hf://spaces/alinf/leaderboard/envs.py
-
curl -L -o envs.py https://huggingface.co/spaces/alinf/leaderboard/resolve/main/envs.py
513 Bytes
| import os | |
| from huggingface_hub import HfApi | |
| # Info to change for your repository | |
| # ---------------------------------- | |
| TOKEN = os.environ.get("HF_TOKEN") | |
| OWNER = "alinf" | |
| RESULT_DATASET_REPO = f'{OWNER}/hikma_results' | |
| # ---------------------------------- | |
| REQUEST_QUEUE_REPO = f'{OWNER}/request_queue' | |
| # If you setup a cache later, just set/change 'HF_HOME' env variable | |
| CACHE_PATH = os.getenv("HF_HOME", ".") | |
| # Local caches | |
| EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue") | |
| API = HfApi(token=TOKEN) |