feat(hf-space): leaderboard app for the OCB dataset - #651
Merged
Conversation
Gradio app reading the daily parquet snapshot live from HF. Four tabs: today's leaderboard, per-chain leaders, provider rankings, about. Deploy workflow pushes to the OpenChainBench/leaderboard Space on main pushes that touch scripts/hf_space/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Gradio app + GH Actions deploy for a companion HF Space sitting on top of
the
OpenChainBench/benchmarksdataset. Goal is more eyeballs on thedataset (HF trending, backlinks, search) without any extra moving piece
on our side.
The app reads four parquet partitions live via
pl.scan_parquet("hf://...")each time the Space cold-starts. No local cache, no auth, no bespoke
state. Four tabs:
as a link to the bench page on openchainbench.com.
A workflow on
mainpushes the folder tohuggingface.co/spaces/OpenChainBench/leaderboardwhen anything underscripts/hf_space/changes. Reuses the existingHF_TOKENsecret.Test plan
pip install -r requirements.txt && python app.pyboots, servesHTTP 200 on 127.0.0.1:7860.
/configexposes the 3 dataframes prefilled (26 headlines, 39chain leader rows, 5 providers on the default slug).
/call/view_headlinesand/call/view_providersreturn the expected filtered rows.