openhands commited on
Commit
d05a70e
·
1 Parent(s): 1ca9fc3

Add REST API for programmatic access to leaderboard data

Browse files

- Add api.py with FastAPI endpoints for leaderboard data
- Mount API on root path using gr.mount_gradio_app()
- Add API documentation link to About page Resources section
- API uses same data loading functions as UI for consistency

Endpoints:
- /health - Health check with cache status
- /leaderboard - Full leaderboard with filtering/sorting
- /leaderboard/models - List all models
- /leaderboard/model/{name} - Get specific model
- /categories - List benchmark categories
- /benchmarks - List benchmarks
- /docs - Swagger UI documentation

4 files changed +368 -8
Files changed (4)
about.py+1
api.pyAdded+356
app.py+10-8
requirements.txt+1