improve filter failing models
Browse files
app.py
CHANGED
|
@@ -370,38 +370,17 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 370 |
- NVIDIA only: show models with NVIDIA failures (including those with both)
|
| 371 |
- Both checked: show all models with any failures
|
| 372 |
"""
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
)
|
| 381 |
-
|
| 382 |
-
#
|
| 383 |
-
|
| 384 |
-
gr.update(visible=False), # all_models_container
|
| 385 |
-
gr.update(visible=True), # amd_failures_container
|
| 386 |
-
gr.update(visible=False), # nvidia_failures_container
|
| 387 |
-
gr.update(visible=False), # both_failures_container
|
| 388 |
-
)
|
| 389 |
-
elif not show_amd and show_nvidia:
|
| 390 |
-
# Show NVIDIA failures only
|
| 391 |
-
return (
|
| 392 |
-
gr.update(visible=False), # all_models_container
|
| 393 |
-
gr.update(visible=False), # amd_failures_container
|
| 394 |
-
gr.update(visible=True), # nvidia_failures_container
|
| 395 |
-
gr.update(visible=False), # both_failures_container
|
| 396 |
-
)
|
| 397 |
-
else:
|
| 398 |
-
# Show all failures
|
| 399 |
-
return (
|
| 400 |
-
gr.update(visible=False), # all_models_container
|
| 401 |
-
gr.update(visible=False), # amd_failures_container
|
| 402 |
-
gr.update(visible=False), # nvidia_failures_container
|
| 403 |
-
gr.update(visible=True), # both_failures_container
|
| 404 |
-
)
|
| 405 |
|
| 406 |
# Connect both checkboxes to the filter function
|
| 407 |
show_amd_failures.change(
|
|
|
|
| 370 |
- NVIDIA only: show models with NVIDIA failures (including those with both)
|
| 371 |
- Both checked: show all models with any failures
|
| 372 |
"""
|
| 373 |
+
show_all = not show_amd and not show_nvidia
|
| 374 |
+
show_amd_only = show_amd and not show_nvidia
|
| 375 |
+
show_nvidia_only = not show_amd and show_nvidia
|
| 376 |
+
show_all_failures = show_amd and show_nvidia
|
| 377 |
+
|
| 378 |
+
return (
|
| 379 |
+
gr.update(visible=show_all), # all_models_container
|
| 380 |
+
gr.update(visible=show_amd_only), # amd_failures_container
|
| 381 |
+
gr.update(visible=show_nvidia_only), # nvidia_failures_container
|
| 382 |
+
gr.update(visible=show_all_failures), # all_failures_container
|
| 383 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
|
| 385 |
# Connect both checkboxes to the filter function
|
| 386 |
show_amd_failures.change(
|