Lisa Dunlap
commited on
Commit
β’
4ed001b
1
Parent(s):
853a7bf
fixed more stats header
Browse files
app.py
CHANGED
@@ -277,7 +277,7 @@ def update_leaderboard_and_plots(button, arena_df, model_table_df, arena_subset_
|
|
277 |
p2 = elo_subset_results["battle_count_heatmap"]
|
278 |
p3 = elo_subset_results["bootstrap_elo_rating"]
|
279 |
p4 = elo_subset_results["average_win_rate_bar"]
|
280 |
-
more_stats_md = f"""More Statistics for Chatbot Arena ({button})
|
281 |
"""
|
282 |
leaderboard_md = make_arena_leaderboard_md(arena_df, arena_subset_df, name=button)
|
283 |
return arena_values, p1, p2, p3, p4, more_stats_md, leaderboard_md
|
@@ -400,11 +400,10 @@ See Figure 3 below for visualization of the confidence intervals. Code to recrea
|
|
400 |
leader_component_values[:] = [default_md, p1, p2, p3, p4]
|
401 |
|
402 |
if show_plot:
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
more_stats_md = gr.Button("More Statistics for Chatbot Arena (Overall)", elem_id="non-interactive-button")
|
408 |
with gr.Row():
|
409 |
with gr.Column():
|
410 |
gr.Markdown(
|
@@ -451,6 +450,7 @@ block_css = """
|
|
451 |
padding-top: 6px;
|
452 |
padding-bottom: 6px;
|
453 |
}
|
|
|
454 |
#leaderboard_markdown {
|
455 |
font-size: 104%
|
456 |
}
|
@@ -459,6 +459,12 @@ block_css = """
|
|
459 |
padding-bottom: 6px;
|
460 |
}
|
461 |
|
|
|
|
|
|
|
|
|
|
|
|
|
462 |
#leaderboard_dataframe td {
|
463 |
line-height: 0.1em;
|
464 |
}
|
@@ -510,7 +516,12 @@ We thank [Kaggle](https://www.kaggle.com/), [MBZUAI](https://mbzuai.ac.ae/), [a1
|
|
510 |
def build_demo(elo_results_file, leaderboard_table_file):
|
511 |
text_size = gr.themes.sizes.text_lg
|
512 |
theme = gr.themes.Base(text_size=text_size)
|
513 |
-
theme.set(button_secondary_background_fill_hover="*primary_300",
|
|
|
|
|
|
|
|
|
|
|
514 |
with gr.Blocks(
|
515 |
title="Chatbot Arena Leaderboard",
|
516 |
theme=theme,
|
|
|
277 |
p2 = elo_subset_results["battle_count_heatmap"]
|
278 |
p3 = elo_subset_results["bootstrap_elo_rating"]
|
279 |
p4 = elo_subset_results["average_win_rate_bar"]
|
280 |
+
more_stats_md = f"""## More Statistics for Chatbot Arena ({button})
|
281 |
"""
|
282 |
leaderboard_md = make_arena_leaderboard_md(arena_df, arena_subset_df, name=button)
|
283 |
return arena_values, p1, p2, p3, p4, more_stats_md, leaderboard_md
|
|
|
400 |
leader_component_values[:] = [default_md, p1, p2, p3, p4]
|
401 |
|
402 |
if show_plot:
|
403 |
+
more_stats_md = gr.Markdown(
|
404 |
+
f"""## More Statistics for Chatbot Arena (Overall)""",
|
405 |
+
elem_id="leaderboard_header_markdown"
|
406 |
+
)
|
|
|
407 |
with gr.Row():
|
408 |
with gr.Column():
|
409 |
gr.Markdown(
|
|
|
450 |
padding-top: 6px;
|
451 |
padding-bottom: 6px;
|
452 |
}
|
453 |
+
|
454 |
#leaderboard_markdown {
|
455 |
font-size: 104%
|
456 |
}
|
|
|
459 |
padding-bottom: 6px;
|
460 |
}
|
461 |
|
462 |
+
#leaderboard_header_markdown {
|
463 |
+
font-size: 104%;
|
464 |
+
text-align: center;
|
465 |
+
display:block;
|
466 |
+
}
|
467 |
+
|
468 |
#leaderboard_dataframe td {
|
469 |
line-height: 0.1em;
|
470 |
}
|
|
|
516 |
def build_demo(elo_results_file, leaderboard_table_file):
|
517 |
text_size = gr.themes.sizes.text_lg
|
518 |
theme = gr.themes.Base(text_size=text_size)
|
519 |
+
# theme.set(button_secondary_background_fill_hover="*primary_300",
|
520 |
+
# button_secondary_background_fill_hover_dark="*primary_700",
|
521 |
+
# link_text_color_dark="*primary_200", link_text_color_hover="*secondary_700",
|
522 |
+
# link_text_color="*secondary_600", link_text_color_active="*secondary_600", link_text_color_active_dark="*secondary_500")
|
523 |
+
theme.set(button_secondary_background_fill_hover="*primary_300",
|
524 |
+
button_secondary_background_fill_hover_dark="*primary_700")
|
525 |
with gr.Blocks(
|
526 |
title="Chatbot Arena Leaderboard",
|
527 |
theme=theme,
|