Spaces:
Sleeping

AgentRobustBench / DEPLOY.md
xzhou10
Init RobustBench-TC leaderboard MVP with 18 seeded models
37a1a73
|
Raw History Blame Contribute Delete
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
```