Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.22.0
metadata
title: UQ Competition Leaderboard
emoji: π
colorFrom: indigo
colorTo: blue
sdk: gradio
app_file: app.py
pinned: false
UQ Competition Leaderboard
Students upload submission.csv (id,p_correct) + a team name; the Space grades it against
hidden labels and ranks teams by Brier score (lower is better). Baselines are seeded
automatically.
Files
app.pyβ the Gradio leaderboardscoring.pyβ grading + ranking logicrequirements.txtbaselines/*.csvβ optional instructor baselines (seemake_baselines.py)- the hidden labels β kept private, see below
Setup (recommended: public Space + private labels dataset)
- Create a new Gradio Space. Add
app.py,scoring.py,requirements.txt. - Put your
test_labels.csv(id,correct) in a private dataset repo, e.g.your-user/uq-comp-labels. - In the Space Settings β Variables and secrets, add:
- secret
HF_TOKEN= a token with read access to that private dataset - variable
LABELS_DATASET=your-user/uq-comp-labels
- secret
- (Optional) run
make_baselines.pylocally and add the resultingbaselines/folder to the Space. - Share the Space URL with students.
The labels live in a private dataset the Space reads with its token, so students using the public Space can never see them.
Simpler alternative (private Space)
Make the Space private and upload test_labels.csv directly into it (no dataset/secret
needed β the app falls back to reading the local file). Only people you invite can use it.
Notes
- Submissions are stored in
submissions.csv; each team keeps its best (lowest Brier) row. - That file resets if the Space rebuilds. For a single workshop session that's fine; for durability enable persistent storage on the Space, or have students keep their CSVs.
- Baselines (
π€ constant,π€ random,π€ perfect, plus anybaselines/*.csv) are recomputed on every refresh and are not part of the saved submissions.