Michael Rabinovich Cursor commited on
Commit
31854f7
·
1 Parent(s): f4924d6

leaderboard: move Tasks tab after Leaderboard

Browse files

Co-authored-by: Cursor <cursoragent@cursor.com>

Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -772,17 +772,6 @@ with gr.Blocks(title="CADGenBench Leaderboard", theme=gr.themes.Soft()) as block
772
  fn=_gallery_iframe_html, outputs=gallery_html,
773
  )
774
 
775
- with gr.Tab("Tasks"):
776
- # Read-only task browser: mirrors the per-submission report's
777
- # summary-table -> detail-card navigation (j/k, Esc) but shows
778
- # only the prompt + input (drawing / starting shape), no scores
779
- # or ground truth. Self-contained HTML inlined into an iframe
780
- # `srcdoc` like the gallery; input images lazy-load from the
781
- # `/task-input` proxy. Built at boot, rebuilt on page load.
782
- tasks_html = gr.HTML(value=_tasks_iframe_html())
783
- tasks_refresh_btn = gr.Button("Refresh tasks", size="sm")
784
- tasks_refresh_btn.click(fn=_tasks_iframe_html, outputs=tasks_html)
785
-
786
  with gr.Tab("Leaderboard"):
787
  # Load both tiers once at boot. `_safe_load_split` keeps a Hub
788
  # read failure from crashing the Space: on failure the frames
@@ -861,6 +850,17 @@ with gr.Blocks(title="CADGenBench Leaderboard", theme=gr.themes.Soft()) as block
861
  # browser users, so we link to it directly instead of inlining the
862
  # (tens-to-hundreds-of-MB) report through the Gradio event payload.
863
 
 
 
 
 
 
 
 
 
 
 
 
864
  with gr.Tab("Submit"):
865
  gr.Markdown(
866
  f"""
 
772
  fn=_gallery_iframe_html, outputs=gallery_html,
773
  )
774
 
 
 
 
 
 
 
 
 
 
 
 
775
  with gr.Tab("Leaderboard"):
776
  # Load both tiers once at boot. `_safe_load_split` keeps a Hub
777
  # read failure from crashing the Space: on failure the frames
 
850
  # browser users, so we link to it directly instead of inlining the
851
  # (tens-to-hundreds-of-MB) report through the Gradio event payload.
852
 
853
+ with gr.Tab("Tasks"):
854
+ # Read-only task browser: mirrors the per-submission report's
855
+ # summary-table -> detail-card navigation (j/k, Esc) but shows
856
+ # only the prompt + input (drawing / starting shape), no scores
857
+ # or ground truth. Self-contained HTML inlined into an iframe
858
+ # `srcdoc` like the gallery; input images lazy-load from the
859
+ # `/task-input` proxy. Built at boot, rebuilt on page load.
860
+ tasks_html = gr.HTML(value=_tasks_iframe_html())
861
+ tasks_refresh_btn = gr.Button("Refresh tasks", size="sm")
862
+ tasks_refresh_btn.click(fn=_tasks_iframe_html, outputs=tasks_html)
863
+
864
  with gr.Tab("Submit"):
865
  gr.Markdown(
866
  f"""