@@ -1075,30 +1075,30 @@ def build_demo(elo_results_file, leaderboard_table_file, arena_hard_leaderboard)
10751075
10761076 text_size = gr .themes .sizes .text_lg
10771077 # load theme from theme.json
1078- theme = gr .themes .Default .load ("theme.json" )
1078+ # theme = gr.themes.Default.load("theme.json")
10791079 # set text size to large
1080- theme .text_size = text_size
1081- theme .set (
1082- button_large_text_size = "20px" ,
1083- button_small_text_size = "20px" ,
1084- button_large_text_weight = "100" ,
1085- button_small_text_weight = "100" ,
1086- button_shadow = "*shadow_drop_lg" ,
1087- button_shadow_hover = "*shadow_drop_lg" ,
1088- checkbox_label_shadow = "*shadow_drop_lg" ,
1089- button_shadow_active = "*shadow_inset" ,
1090- button_secondary_background_fill = "*primary_300" ,
1091- button_secondary_background_fill_dark = "*primary_700" ,
1092- button_secondary_background_fill_hover = "*primary_200" ,
1093- button_secondary_background_fill_hover_dark = "*primary_500" ,
1094- button_secondary_text_color = "*primary_800" ,
1095- button_secondary_text_color_dark = "white" ,
1096- )
1080+ # theme.text_size = text_size
1081+ # theme.set(
1082+ # button_large_text_size="20px",
1083+ # button_small_text_size="20px",
1084+ # button_large_text_weight="100",
1085+ # button_small_text_weight="100",
1086+ # button_shadow="*shadow_drop_lg",
1087+ # button_shadow_hover="*shadow_drop_lg",
1088+ # checkbox_label_shadow="*shadow_drop_lg",
1089+ # button_shadow_active="*shadow_inset",
1090+ # button_secondary_background_fill="*primary_300",
1091+ # button_secondary_background_fill_dark="*primary_700",
1092+ # button_secondary_background_fill_hover="*primary_200",
1093+ # button_secondary_background_fill_hover_dark="*primary_500",
1094+ # button_secondary_text_color="*primary_800",
1095+ # button_secondary_text_color_dark="white",
1096+ # )
10971097
10981098 with gr .Blocks (
10991099 title = "Chatbot Arena Leaderboard" ,
1100- # theme=gr.themes.Default(text_size=text_size),
1101- theme = theme ,
1100+ theme = gr .themes .Default (text_size = text_size ),
1101+ # theme=theme,
11021102 css = block_css ,
11031103 ) as demo :
11041104 with gr .Tabs () as tabs :
0 commit comments