Spaces:
Sleeping
Sleeping
|
Download DEPLOY.md from willchow66/AgentRobustBench: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/spaces/willchow66/AgentRobustBench/resolve/main/DEPLOY.md
- Command line
-
hf download hf://spaces/willchow66/AgentRobustBench/DEPLOY.md
-
curl -L -o DEPLOY.md https://huggingface.co/spaces/willchow66/AgentRobustBench/resolve/main/DEPLOY.md
1.09 kB
| # Deploy the leaderboard to HuggingFace Spaces | |
| Three commands. Run them in `/u/xzhou10/sim2real/leaderboard/`. | |
| ```bash | |
| # 1. Auth (one-time): paste a HF write-access token from | |
| # https://huggingface.co/settings/tokens | |
| hf auth login | |
| # 2. Create the Space (one-time): | |
| hf repo create robustbench-tc-leaderboard --type space --space_sdk gradio | |
| # 3. Commit + push (every time you update): | |
| git commit -m "Init MVP with 18 seeded models" --allow-empty | |
| git remote add space https://huggingface.co/spaces/$(hf auth whoami | head -1)/robustbench-tc-leaderboard 2>/dev/null || true | |
| git push -u space main | |
| ``` | |
| The Space will install `requirements.txt`, run `app.py`, and the | |
| leaderboard tab will immediately show our 18 seeded entries from | |
| `leaderboard.csv`. New submissions append to the same CSV (and we will | |
| later sync to a HF Dataset for cross-restart persistence). | |
| To run **locally** before deploying: | |
| ```bash | |
| pip install -r requirements.txt | |
| python app.py # opens http://localhost:7860 | |
| ``` | |
| If `hf` is not on your PATH yet: | |
| ```bash | |
| pip install --user huggingface_hub | |
| hash -r | |
| ``` | |