cccjc commited on
Commit
aedc60d
·
1 Parent(s): 2ce9a2d

set up max_height for tables

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks(css=css) as block:
58
  datatype=["str"] + ["number"] * (len(initial_headers) - 1),
59
  interactive=False,
60
  elem_classes="custom-dataframe",
61
- #height=1000,
62
  )
63
  refresh_button = gr.Button("Refresh")
64
  refresh_button.click(fn=update_leaderboard, inputs=[super_group_selector, model_group_selector], outputs=[data_component])
 
58
  datatype=["str"] + ["number"] * (len(initial_headers) - 1),
59
  interactive=False,
60
  elem_classes="custom-dataframe",
61
+ max_height=1200,
62
  )
63
  refresh_button = gr.Button("Refresh")
64
  refresh_button.click(fn=update_leaderboard, inputs=[super_group_selector, model_group_selector], outputs=[data_component])
utils.py CHANGED
@@ -104,7 +104,7 @@ def get_original_keyword(mapped_keyword):
104
  # Define model groups
105
  MODEL_GROUPS = {
106
  "All": list(MODEL_DATA.keys()),
107
- "Flagship Models": ['Claude_3.5_new', 'GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002', 'Qwen2_VL_72B', 'InternVL2_76B', 'llava_onevision_72B', 'NVLM-72B'],
108
  "Efficiency Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini', 'Qwen2_VL_7B', 'Pixtral_12B', 'Aria', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
109
  "Proprietary Flagship models": ['Claude_3.5_new', 'GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002'],
110
  "Proprietary Efficiency Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini'],
 
104
  # Define model groups
105
  MODEL_GROUPS = {
106
  "All": list(MODEL_DATA.keys()),
107
+ "Flagship Models": ['Claude_3.5_new', 'GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002', 'Qwen2_VL_72B', 'InternVL2_76B', 'llava_onevision_72B', 'NVLM'],
108
  "Efficiency Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini', 'Qwen2_VL_7B', 'Pixtral_12B', 'Aria', 'InternVL2_8B', 'Phi-3.5-vision', 'MiniCPM_v2.6', 'llava_onevision_7B', 'Llama_3_2_11B', 'Idefics3'],
109
  "Proprietary Flagship models": ['Claude_3.5_new', 'GPT_4o', 'Claude_3.5', 'Gemini_1.5_pro_002'],
110
  "Proprietary Efficiency Models": ['Gemini_1.5_flash_002', 'GPT_4o_mini'],