qq-hzlh commited on
Commit
bd69a52
·
1 Parent(s): f2a1e8d

update tab

Browse files
Files changed (1) hide show
  1. app.py +3 -12
app.py CHANGED
@@ -4,16 +4,9 @@ import gradio as gr
4
  from gen_table import *
5
  from meta_data import *
6
 
7
- # import pandas as pd
8
- # pd.set_option('display.max_colwidth', 0)
9
 
10
 
11
- with gr.Blocks(title="Open Agent Leaderboard", css="""
12
- .gradio-container p {
13
- white-space: pre-line !important;
14
- margin: 0 !important;
15
- }
16
- """) as demo:
17
  struct = load_results(OVERALL_MATH_SCORE_FILE)
18
  timestamp = struct['time']
19
  EVAL_TIME = format_timestamp(timestamp)
@@ -25,10 +18,8 @@ with gr.Blocks(title="Open Agent Leaderboard", css="""
25
  print(DATASETS)
26
 
27
 
28
-
29
- with gr.Tabs() as tabs:
30
- gr.Markdown(LEADERBORAD_INTRODUCTION.format(EVAL_TIME))
31
-
32
  with gr.Tab(label='🏅 Open Agent Overall Math Leaderboard'):
33
  gr.Markdown(LEADERBOARD_MD['MATH_MAIN'])
34
  check_box = BUILD_L1_DF(results, DEFAULT_MATH_BENCH)
 
4
  from gen_table import *
5
  from meta_data import *
6
 
 
 
7
 
8
 
9
+ with gr.Blocks(title="Open Agent Leaderboard") as demo:
 
 
 
 
 
10
  struct = load_results(OVERALL_MATH_SCORE_FILE)
11
  timestamp = struct['time']
12
  EVAL_TIME = format_timestamp(timestamp)
 
18
  print(DATASETS)
19
 
20
 
21
+ gr.Markdown(LEADERBORAD_INTRODUCTION.format(EVAL_TIME))
22
+ with gr.Tabs(elem_classes='tab-buttons') as tabs:
 
 
23
  with gr.Tab(label='🏅 Open Agent Overall Math Leaderboard'):
24
  gr.Markdown(LEADERBOARD_MD['MATH_MAIN'])
25
  check_box = BUILD_L1_DF(results, DEFAULT_MATH_BENCH)