style theme
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ custom_theme = gr.themes.Default(
|
|
| 78 |
body_background_fill_dark="#0f0f10",
|
| 79 |
body_text_color="#f4f4f5",
|
| 80 |
body_text_color_subdued="#a1a1aa",
|
| 81 |
-
block_background_fill="#
|
| 82 |
block_border_color="#27272a",
|
| 83 |
block_shadow="none",
|
| 84 |
button_primary_background_fill="#27272a",
|
|
@@ -92,7 +92,7 @@ custom_theme = gr.themes.Default(
|
|
| 92 |
input_placeholder_color="#71717a",
|
| 93 |
table_border_color="#3f3f46",
|
| 94 |
table_even_background_fill="#1c1c1f",
|
| 95 |
-
table_odd_background_fill="#
|
| 96 |
table_text_color="#f4f4f5",
|
| 97 |
link_text_color="#ffffff",
|
| 98 |
border_color_primary="#3f3f46",
|
|
@@ -102,7 +102,7 @@ custom_theme = gr.themes.Default(
|
|
| 102 |
button_primary_background_fill_hover="#3f3f46",
|
| 103 |
block_title_text_color="#f4f4f5",
|
| 104 |
accordion_text_color="#f4f4f5",
|
| 105 |
-
panel_background_fill="#
|
| 106 |
panel_border_color="#27272a",
|
| 107 |
# Explicitly setting primary/secondary/accent colors/borders
|
| 108 |
background_fill_primary="#0f0f10",
|
|
@@ -128,7 +128,7 @@ custom_theme = gr.themes.Default(
|
|
| 128 |
input_placeholder_color_dark="#71717a",
|
| 129 |
# Explicitly set dark variants for table backgrounds
|
| 130 |
table_even_background_fill_dark="#1c1c1f",
|
| 131 |
-
table_odd_background_fill_dark="#
|
| 132 |
# Explicitly set dark text variants
|
| 133 |
body_text_color_dark="#f4f4f5",
|
| 134 |
body_text_color_subdued_dark="#a1a1aa",
|
|
@@ -136,9 +136,9 @@ custom_theme = gr.themes.Default(
|
|
| 136 |
accordion_text_color_dark="#f4f4f5",
|
| 137 |
table_text_color_dark="#f4f4f5",
|
| 138 |
# Explicitly set dark panel/block variants
|
| 139 |
-
panel_background_fill_dark="#
|
| 140 |
panel_border_color_dark="#27272a",
|
| 141 |
-
block_background_fill_dark="#
|
| 142 |
block_border_color_dark="#27272a",
|
| 143 |
)
|
| 144 |
|
|
@@ -577,7 +577,7 @@ with demo:
|
|
| 577 |
with tabs:
|
| 578 |
with gr.TabItem("🏅 Leaderboard", elem_id="guardbench-leaderboard-tab", id=0):
|
| 579 |
with gr.Row():
|
| 580 |
-
refresh_button = gr.Button("Refresh Leaderboard")
|
| 581 |
version_selector = gr.Dropdown(
|
| 582 |
choices=BENCHMARK_VERSIONS,
|
| 583 |
label="Benchmark Version",
|
|
|
|
| 78 |
body_background_fill_dark="#0f0f10",
|
| 79 |
body_text_color="#f4f4f5",
|
| 80 |
body_text_color_subdued="#a1a1aa",
|
| 81 |
+
block_background_fill="#262626",
|
| 82 |
block_border_color="#27272a",
|
| 83 |
block_shadow="none",
|
| 84 |
button_primary_background_fill="#27272a",
|
|
|
|
| 92 |
input_placeholder_color="#71717a",
|
| 93 |
table_border_color="#3f3f46",
|
| 94 |
table_even_background_fill="#1c1c1f",
|
| 95 |
+
table_odd_background_fill="#262626",
|
| 96 |
table_text_color="#f4f4f5",
|
| 97 |
link_text_color="#ffffff",
|
| 98 |
border_color_primary="#3f3f46",
|
|
|
|
| 102 |
button_primary_background_fill_hover="#3f3f46",
|
| 103 |
block_title_text_color="#f4f4f5",
|
| 104 |
accordion_text_color="#f4f4f5",
|
| 105 |
+
panel_background_fill="#262626",
|
| 106 |
panel_border_color="#27272a",
|
| 107 |
# Explicitly setting primary/secondary/accent colors/borders
|
| 108 |
background_fill_primary="#0f0f10",
|
|
|
|
| 128 |
input_placeholder_color_dark="#71717a",
|
| 129 |
# Explicitly set dark variants for table backgrounds
|
| 130 |
table_even_background_fill_dark="#1c1c1f",
|
| 131 |
+
table_odd_background_fill_dark="#262626",
|
| 132 |
# Explicitly set dark text variants
|
| 133 |
body_text_color_dark="#f4f4f5",
|
| 134 |
body_text_color_subdued_dark="#a1a1aa",
|
|
|
|
| 136 |
accordion_text_color_dark="#f4f4f5",
|
| 137 |
table_text_color_dark="#f4f4f5",
|
| 138 |
# Explicitly set dark panel/block variants
|
| 139 |
+
panel_background_fill_dark="#262626",
|
| 140 |
panel_border_color_dark="#27272a",
|
| 141 |
+
block_background_fill_dark="#262626",
|
| 142 |
block_border_color_dark="#27272a",
|
| 143 |
)
|
| 144 |
|
|
|
|
| 577 |
with tabs:
|
| 578 |
with gr.TabItem("🏅 Leaderboard", elem_id="guardbench-leaderboard-tab", id=0):
|
| 579 |
with gr.Row():
|
| 580 |
+
refresh_button = gr.Button("Refresh Leaderboard", variant="primary")
|
| 581 |
version_selector = gr.Dropdown(
|
| 582 |
choices=BENCHMARK_VERSIONS,
|
| 583 |
label="Benchmark Version",
|