Spaces:
Paused
Paused
Amber Tanaka
commited on
Small tweaks (#40)
Browse files- category_page_builder.py +1 -1
- content.py +6 -0
- ui_components.py +0 -2
category_page_builder.py
CHANGED
|
@@ -13,7 +13,7 @@ def build_category_page(CATEGORY_NAME, PAGE_DESCRIPTION):
|
|
| 13 |
|
| 14 |
with gr.Column(elem_id="test_nav_container", visible=True) as test_nav_container:
|
| 15 |
create_sub_navigation_bar(test_tag_map, CATEGORY_NAME)
|
| 16 |
-
gr.
|
| 17 |
gr.Markdown(PAGE_DESCRIPTION, elem_id="category-intro")
|
| 18 |
# --- This page now has two main sections: Validation and Test ---
|
| 19 |
with gr.Tabs():
|
|
|
|
| 13 |
|
| 14 |
with gr.Column(elem_id="test_nav_container", visible=True) as test_nav_container:
|
| 15 |
create_sub_navigation_bar(test_tag_map, CATEGORY_NAME)
|
| 16 |
+
gr.HTML(f'<h2>AstaBench {CATEGORY_NAME} Leaderboard <span style="font-weight: normal; color: inherit;">(Aggregate)</span></h2>', elem_id="main-header")
|
| 17 |
gr.Markdown(PAGE_DESCRIPTION, elem_id="category-intro")
|
| 18 |
# --- This page now has two main sections: Validation and Test ---
|
| 19 |
with gr.Tabs():
|
content.py
CHANGED
|
@@ -451,4 +451,10 @@ span.wrap[tabindex="0"][role="button"][data-editable="false"] {
|
|
| 451 |
transform: translateY(-2px);
|
| 452 |
box-shadow: 0 6px 12px rgba(0,0,0,0.3);
|
| 453 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
"""
|
|
|
|
| 451 |
transform: translateY(-2px);
|
| 452 |
box-shadow: 0 6px 12px rgba(0,0,0,0.3);
|
| 453 |
}
|
| 454 |
+
.dark #main-header h2 {
|
| 455 |
+
color: #0fcb8c;
|
| 456 |
+
}
|
| 457 |
+
#main-header h2 {
|
| 458 |
+
color: #f0529c;
|
| 459 |
+
}
|
| 460 |
"""
|
ui_components.py
CHANGED
|
@@ -332,7 +332,6 @@ def create_leaderboard_display(
|
|
| 332 |
value=scatter_plot,
|
| 333 |
show_label=False
|
| 334 |
)
|
| 335 |
-
gr.HTML(SCATTER_DISCLAIMER, elem_id="scatter-disclaimer")
|
| 336 |
|
| 337 |
# Put table and key into an accordion
|
| 338 |
with gr.Accordion("Show / Hide Table View", open=True, elem_id="leaderboard-accordion"):
|
|
@@ -490,7 +489,6 @@ def create_benchmark_details_display(
|
|
| 490 |
name=benchmark_name
|
| 491 |
)
|
| 492 |
gr.Plot(value=benchmark_plot, show_label=False)
|
| 493 |
-
gr.HTML(SCATTER_DISCLAIMER, elem_id="scatter-disclaimer")
|
| 494 |
# Put table and key into an accordion
|
| 495 |
with gr.Accordion("Show / Hide Table View", open=True, elem_id="leaderboard-accordion"):
|
| 496 |
gr.HTML(value=legend_markdown, elem_id="legend-markdown")
|
|
|
|
| 332 |
value=scatter_plot,
|
| 333 |
show_label=False
|
| 334 |
)
|
|
|
|
| 335 |
|
| 336 |
# Put table and key into an accordion
|
| 337 |
with gr.Accordion("Show / Hide Table View", open=True, elem_id="leaderboard-accordion"):
|
|
|
|
| 489 |
name=benchmark_name
|
| 490 |
)
|
| 491 |
gr.Plot(value=benchmark_plot, show_label=False)
|
|
|
|
| 492 |
# Put table and key into an accordion
|
| 493 |
with gr.Accordion("Show / Hide Table View", open=True, elem_id="leaderboard-accordion"):
|
| 494 |
gr.HTML(value=legend_markdown, elem_id="legend-markdown")
|