Spaces:
Sleeping

AgentRobustBench / DEPLOY.md
xzhou10
Init RobustBench-TC leaderboard MVP with 18 seeded models
37a1a73
|
Raw History Blame Contribute Delete
1.09 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade

Deploy the leaderboard to HuggingFace Spaces

Three commands. Run them in /u/xzhou10/sim2real/leaderboard/.

# 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:

pip install -r requirements.txt
python app.py    # opens http://localhost:7860

If hf is not on your PATH yet:

pip install --user huggingface_hub
hash -r