fix
Browse files- app.py +38 -7
- styles.css +46 -1
app.py
CHANGED
|
@@ -306,13 +306,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 306 |
|
| 307 |
# Main content area
|
| 308 |
with gr.Column(scale=4, elem_classes=["main-content"]):
|
| 309 |
-
# New Regressions Panel (at the top for visibility)
|
| 310 |
-
regressions_panel = gr.Markdown(
|
| 311 |
-
value=get_regressions_text(),
|
| 312 |
-
elem_classes=["regressions-panel"],
|
| 313 |
-
visible=True
|
| 314 |
-
)
|
| 315 |
-
|
| 316 |
# Current view components
|
| 317 |
with gr.Column(visible=True, elem_classes=["current-view"]) as current_view:
|
| 318 |
# Summary display (default view)
|
|
@@ -323,6 +316,19 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 323 |
elem_classes=["plot-container"],
|
| 324 |
visible=True
|
| 325 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
|
| 327 |
# Detailed view components (hidden by default)
|
| 328 |
with gr.Column(visible=False, elem_classes=["detail-view"]) as detail_view:
|
|
@@ -487,6 +493,31 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 487 |
outputs=[all_models_container, amd_failures_container, nvidia_failures_container, both_failures_container]
|
| 488 |
)
|
| 489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 490 |
# Model toggle functionality
|
| 491 |
def toggle_model_list(current_visible):
|
| 492 |
"""Toggle the visibility of the model list."""
|
|
|
|
| 306 |
|
| 307 |
# Main content area
|
| 308 |
with gr.Column(scale=4, elem_classes=["main-content"]):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
# Current view components
|
| 310 |
with gr.Column(visible=True, elem_classes=["current-view"]) as current_view:
|
| 311 |
# Summary display (default view)
|
|
|
|
| 316 |
elem_classes=["plot-container"],
|
| 317 |
visible=True
|
| 318 |
)
|
| 319 |
+
|
| 320 |
+
# New Regressions section (at the bottom, collapsible)
|
| 321 |
+
regressions_toggle_button = gr.Button(
|
| 322 |
+
"► New Regressions",
|
| 323 |
+
variant="secondary",
|
| 324 |
+
elem_classes=["regressions-header"]
|
| 325 |
+
)
|
| 326 |
+
|
| 327 |
+
with gr.Column(elem_classes=["regressions-content", "regressions-content-hidden"]) as regressions_content:
|
| 328 |
+
regressions_panel = gr.Markdown(
|
| 329 |
+
value=get_regressions_text(),
|
| 330 |
+
elem_classes=["regressions-panel"]
|
| 331 |
+
)
|
| 332 |
|
| 333 |
# Detailed view components (hidden by default)
|
| 334 |
with gr.Column(visible=False, elem_classes=["detail-view"]) as detail_view:
|
|
|
|
| 493 |
outputs=[all_models_container, amd_failures_container, nvidia_failures_container, both_failures_container]
|
| 494 |
)
|
| 495 |
|
| 496 |
+
# Regressions panel toggle functionality
|
| 497 |
+
def toggle_regressions_panel(current_visible):
|
| 498 |
+
"""Toggle the visibility of the regressions panel."""
|
| 499 |
+
new_visible = not current_visible
|
| 500 |
+
arrow = "▼" if new_visible else "►"
|
| 501 |
+
button_text = f"{arrow} New Regressions"
|
| 502 |
+
|
| 503 |
+
# Use CSS classes instead of Gradio visibility
|
| 504 |
+
css_classes = ["regressions-content"]
|
| 505 |
+
if new_visible:
|
| 506 |
+
css_classes.append("regressions-content-visible")
|
| 507 |
+
else:
|
| 508 |
+
css_classes.append("regressions-content-hidden")
|
| 509 |
+
|
| 510 |
+
return gr.update(value=button_text), gr.update(elem_classes=css_classes), new_visible
|
| 511 |
+
|
| 512 |
+
# Track regressions panel visibility state
|
| 513 |
+
regressions_visible = gr.State(False)
|
| 514 |
+
|
| 515 |
+
regressions_toggle_button.click(
|
| 516 |
+
fn=toggle_regressions_panel,
|
| 517 |
+
inputs=[regressions_visible],
|
| 518 |
+
outputs=[regressions_toggle_button, regressions_content, regressions_visible]
|
| 519 |
+
)
|
| 520 |
+
|
| 521 |
# Model toggle functionality
|
| 522 |
def toggle_model_list(current_visible):
|
| 523 |
"""Toggle the visibility of the model list."""
|
styles.css
CHANGED
|
@@ -594,13 +594,58 @@ h1, h2, h3, p, .markdown {
|
|
| 594 |
flex-direction: column !important;
|
| 595 |
}
|
| 596 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 597 |
/* New Regressions Panel */
|
| 598 |
.regressions-panel {
|
| 599 |
background: linear-gradient(145deg, #2a1a1a, #1a0f0f) !important;
|
| 600 |
border: 2px solid #8B4513 !important;
|
| 601 |
border-radius: 8px !important;
|
| 602 |
padding: 15px 20px !important;
|
| 603 |
-
margin: 15px 0px !important;
|
| 604 |
box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2) !important;
|
| 605 |
animation: pulse-border 2s ease-in-out infinite !important;
|
| 606 |
}
|
|
|
|
| 594 |
flex-direction: column !important;
|
| 595 |
}
|
| 596 |
|
| 597 |
+
/* Regressions header button */
|
| 598 |
+
.regressions-header {
|
| 599 |
+
margin: 15px 0px 10px 0px !important;
|
| 600 |
+
background: linear-gradient(135deg, #2a2a2a, #1e1e1e) !important;
|
| 601 |
+
color: white !important;
|
| 602 |
+
border: 1px solid #8B4513 !important;
|
| 603 |
+
border-radius: 5px !important;
|
| 604 |
+
font-weight: 600 !important;
|
| 605 |
+
font-size: 14px !important;
|
| 606 |
+
font-family: monospace !important;
|
| 607 |
+
text-align: left !important;
|
| 608 |
+
width: 100% !important;
|
| 609 |
+
transition: all 0.3s ease !important;
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
.regressions-header:hover {
|
| 613 |
+
background: linear-gradient(135deg, #3a3a3a, #2e2e2e) !important;
|
| 614 |
+
border-color: #B8621B !important;
|
| 615 |
+
}
|
| 616 |
+
|
| 617 |
+
/* Collapsible regressions content */
|
| 618 |
+
.regressions-content-visible {
|
| 619 |
+
max-height: 800px !important;
|
| 620 |
+
overflow-y: auto !important;
|
| 621 |
+
transition: max-height 0.3s ease !important;
|
| 622 |
+
scrollbar-width: thin !important;
|
| 623 |
+
-ms-overflow-style: none !important;
|
| 624 |
+
}
|
| 625 |
+
|
| 626 |
+
.regressions-content-visible::-webkit-scrollbar {
|
| 627 |
+
width: 8px !important;
|
| 628 |
+
background: transparent !important;
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
.regressions-content-visible::-webkit-scrollbar-thumb {
|
| 632 |
+
background-color: #333333 !important;
|
| 633 |
+
border-radius: 4px !important;
|
| 634 |
+
}
|
| 635 |
+
|
| 636 |
+
.regressions-content-hidden {
|
| 637 |
+
max-height: 0 !important;
|
| 638 |
+
overflow: hidden !important;
|
| 639 |
+
transition: max-height 0.3s ease !important;
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
/* New Regressions Panel */
|
| 643 |
.regressions-panel {
|
| 644 |
background: linear-gradient(145deg, #2a1a1a, #1a0f0f) !important;
|
| 645 |
border: 2px solid #8B4513 !important;
|
| 646 |
border-radius: 8px !important;
|
| 647 |
padding: 15px 20px !important;
|
| 648 |
+
margin: 0px 0px 15px 0px !important;
|
| 649 |
box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2) !important;
|
| 650 |
animation: pulse-border 2s ease-in-out infinite !important;
|
| 651 |
}
|