Spaces:
Sleeping

File size: 1,085 Bytes
37a1a73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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
```