pufanyi commited on
Commit
bc975e4
Β·
1 Parent(s): f1d5836

Refactor init_leaderboard function to handle multiple subsets and improve column selection and hiding

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,7 +65,7 @@ except Exception:
65
  restart_space()
66
 
67
 
68
- LEADERBOARD_DF = get_leaderboard_df(RESULTS_REPO)
69
 
70
 
71
  def init_leaderboard(dataframes, subsets):
@@ -95,7 +95,7 @@ with demo:
95
 
96
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
97
  with gr.TabItem("πŸ… LiveBench Results", elem_id="llm-benchmark-tab-table", id=0):
98
- leaderboard = init_leaderboard(LEADERBOARD_DF)
99
 
100
  with gr.TabItem("πŸ“ About", elem_id="llm-benchmark-tab-table", id=2):
101
  gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")
 
65
  restart_space()
66
 
67
 
68
+ LEADERBOARD_DF, SUBSETS = get_leaderboard_df(RESULTS_REPO)
69
 
70
 
71
  def init_leaderboard(dataframes, subsets):
 
95
 
96
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
97
  with gr.TabItem("πŸ… LiveBench Results", elem_id="llm-benchmark-tab-table", id=0):
98
+ leaderboard = init_leaderboard(LEADERBOARD_DF, SUBSETS)
99
 
100
  with gr.TabItem("πŸ“ About", elem_id="llm-benchmark-tab-table", id=2):
101
  gr.Markdown(LLM_BENCHMARKS_TEXT, elem_classes="markdown-text")