Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions fastchat/serve/monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,30 +1075,30 @@ def build_demo(elo_results_file, leaderboard_table_file, arena_hard_leaderboard)

text_size = gr.themes.sizes.text_lg
# load theme from theme.json
theme = gr.themes.Default.load("theme.json")
# theme = gr.themes.Default.load("theme.json")
# set text size to large
theme.text_size = text_size
theme.set(
button_large_text_size="20px",
button_small_text_size="20px",
button_large_text_weight="100",
button_small_text_weight="100",
button_shadow="*shadow_drop_lg",
button_shadow_hover="*shadow_drop_lg",
checkbox_label_shadow="*shadow_drop_lg",
button_shadow_active="*shadow_inset",
button_secondary_background_fill="*primary_300",
button_secondary_background_fill_dark="*primary_700",
button_secondary_background_fill_hover="*primary_200",
button_secondary_background_fill_hover_dark="*primary_500",
button_secondary_text_color="*primary_800",
button_secondary_text_color_dark="white",
)
# theme.text_size = text_size
# theme.set(
# button_large_text_size="20px",
# button_small_text_size="20px",
# button_large_text_weight="100",
# button_small_text_weight="100",
# button_shadow="*shadow_drop_lg",
# button_shadow_hover="*shadow_drop_lg",
# checkbox_label_shadow="*shadow_drop_lg",
# button_shadow_active="*shadow_inset",
# button_secondary_background_fill="*primary_300",
# button_secondary_background_fill_dark="*primary_700",
# button_secondary_background_fill_hover="*primary_200",
# button_secondary_background_fill_hover_dark="*primary_500",
# button_secondary_text_color="*primary_800",
# button_secondary_text_color_dark="white",
# )

with gr.Blocks(
title="Chatbot Arena Leaderboard",
# theme=gr.themes.Default(text_size=text_size),
theme=theme,
theme=gr.themes.Default(text_size=text_size),
# theme=theme,
css=block_css,
) as demo:
with gr.Tabs() as tabs:
Expand Down