Skip to content

Commit

Permalink
Default to leaderboard table.
Browse files Browse the repository at this point in the history
  • Loading branch information
infwinston authored Sep 16, 2024
1 parent ef16c16 commit 7ec69c2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fastchat/serve/monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
<div style="text-align: center; font-weight: bold;">
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 7ec69c2

Please sign in to comment.