From 7ec69c2c7aa0330c5d754f3d8116663cb1d262cf Mon Sep 17 00:00:00 2001 From: Wei-Lin Chiang Date: Mon, 16 Sep 2024 11:06:28 -0700 Subject: [PATCH] Default to leaderboard table. --- fastchat/serve/monitor/monitor.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fastchat/serve/monitor/monitor.py b/fastchat/serve/monitor/monitor.py index 3d7f83b0e..afdfdd249 100644 --- a/fastchat/serve/monitor/monitor.py +++ b/fastchat/serve/monitor/monitor.py @@ -856,7 +856,14 @@ def build_leaderboard_tab( model_table_df = pd.DataFrame(data) with gr.Tabs() as tabs: - with gr.Tab("Ranking Breakdown", id=0): + with gr.Tab("Arena", id=0): + gr_plots = build_arena_tab( + elo_results_text, + model_table_df, + default_md, + show_plot=show_plot, + ) + with gr.Tab("📣 NEW: Overview", id=1): gr.Markdown( f"""
@@ -875,7 +882,7 @@ def build_leaderboard_tab( elem_id="leaderboard_markdown", ) combined_table = get_combined_table(elo_results_text, model_table_df) - gr_plots = build_category_leaderboard_tab( + build_category_leaderboard_tab( combined_table, "Task", selected_categories, @@ -897,13 +904,6 @@ def build_leaderboard_tab( """, elem_id="leaderboard_markdown", ) - with gr.Tab("Arena", id=1): - gr_plots = build_arena_tab( - elo_results_text, - model_table_df, - default_md, - show_plot=show_plot, - ) with gr.Tab("Arena (Vision)", id=2): build_arena_tab( elo_results_vision,