Pin gradio to 5.49 and cap leaderboard to top 100 rows

#99
by thomwolf HF Staff - opened
GAIA org

Two small changes that together fix the unresponsive-page complaint:

  1. requirements.txt โ€” pin gradio==5.49.1. The Space was on the unpinned
    gradio line which now resolves to gradio 6.14.0. The new gradio 6 Dataframe
    component freezes the browser main thread when rendering HTML-rich cells
    (the Agent name column uses <a> hyperlinks). Tested locally with playwright
    against this Space code: gradio 6.14.0 โ†’ JS thread blocked >30s, CDP screenshot
    itself times out. gradio 5.49.1 โ†’ table fully painted in 1.06s.

  2. app.py โ€” get_dataframe_from_results now keeps only df.head(100) after
    sorting by score. The Space had been inlining all 3242 submissions (~666 KB of
    pre-rendered table data) into the SSR'd HTML. With the cap, payload drops to
    ~23 KB. The full result history is still in gaia-benchmark/results_public
    for anyone who wants it; this is just a display cap.

Together: page-load HTML 743 KB โ†’ 64 KB; first interactive paint goes from
30+ seconds (frozen) to ~1 second.

thomwolf changed pull request status to merged

Sign up or log in to comment