qq-hzlh commited on
Commit
2855154
Β·
1 Parent(s): 7f18d7c

update tab id

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ with gr.Blocks(title="Open Agent Leaderboard", head=head_style) as demo:
34
  with gr.Tabs(elem_classes='tab-buttons') as tabs:
35
  gr.Markdown(LEADERBORAD_INTRODUCTION.format(EVAL_TIME))
36
 
37
- with gr.TabItem('πŸ… Open Agent Overall Math Leaderboard', elem_id='math', id=0):
38
  gr.Markdown(LEADERBOARD_MD['MATH_MAIN'])
39
  check_box = BUILD_L1_DF(results, DEFAULT_MATH_BENCH)
40
  table = generate_table(results, DEFAULT_MATH_BENCH)
@@ -80,7 +80,7 @@ with gr.Blocks(title="Open Agent Leaderboard", head=head_style) as demo:
80
  )
81
 
82
  # detail math leaderboard
83
- with gr.TabItem('πŸ… Open Agent Detail Math Leaderboard', elem_id='math_detail', id=1):
84
  gr.Markdown(LEADERBOARD_MD['MATH_DETAIL'])
85
  struct_detail = load_results(DETAIL_MATH_SCORE_FILE)
86
  timestamp = struct_detail['time']
 
34
  with gr.Tabs(elem_classes='tab-buttons') as tabs:
35
  gr.Markdown(LEADERBORAD_INTRODUCTION.format(EVAL_TIME))
36
 
37
+ with gr.TabItem('πŸ… Open Agent Overall Math Leaderboard', id='math'):
38
  gr.Markdown(LEADERBOARD_MD['MATH_MAIN'])
39
  check_box = BUILD_L1_DF(results, DEFAULT_MATH_BENCH)
40
  table = generate_table(results, DEFAULT_MATH_BENCH)
 
80
  )
81
 
82
  # detail math leaderboard
83
+ with gr.TabItem('πŸ… Open Agent Detail Math Leaderboard', id='math_detail'):
84
  gr.Markdown(LEADERBOARD_MD['MATH_DETAIL'])
85
  struct_detail = load_results(DETAIL_MATH_SCORE_FILE)
86
  timestamp = struct_detail['time']