diff --git a/fastchat/serve/monitor/monitor.py b/fastchat/serve/monitor/monitor.py index c07ee4669..28085c631 100644 --- a/fastchat/serve/monitor/monitor.py +++ b/fastchat/serve/monitor/monitor.py @@ -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: