Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ COLORS = {
|
|
| 20 |
'failed': '#E53E3E',
|
| 21 |
'skipped': '#FFD54F',
|
| 22 |
'error': '#8B0000',
|
| 23 |
-
'amd': '#
|
| 24 |
'nvidia': '#76B900',
|
| 25 |
'background': '#0B0F19',
|
| 26 |
'text': '#FFFFFF'
|
|
@@ -151,7 +151,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 151 |
|
| 152 |
if has_failures:
|
| 153 |
button_classes.append("model-button-failed")
|
| 154 |
-
display_name = f"🚨 {model_name}"
|
| 155 |
|
| 156 |
btn = gr.Button(
|
| 157 |
display_name,
|
|
@@ -169,7 +168,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 169 |
value=create_summary_page(Ci_results.df, Ci_results.available_models),
|
| 170 |
label="",
|
| 171 |
format="png",
|
| 172 |
-
elem_classes=["plot-container"],
|
| 173 |
visible=True
|
| 174 |
)
|
| 175 |
|
|
@@ -177,7 +175,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 177 |
plot_output = gr.Plot(
|
| 178 |
label="",
|
| 179 |
format="png",
|
| 180 |
-
elem_classes=["plot-container"]
|
| 181 |
)
|
| 182 |
|
| 183 |
with gr.Row():
|
|
@@ -189,7 +186,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 189 |
max_lines=8,
|
| 190 |
interactive=False,
|
| 191 |
container=False,
|
| 192 |
-
elem_classes=["failed-tests"]
|
| 193 |
)
|
| 194 |
with gr.Column(scale=1):
|
| 195 |
nvidia_failed_tests_output = gr.Textbox(
|
|
@@ -199,7 +195,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 199 |
max_lines=8,
|
| 200 |
interactive=False,
|
| 201 |
container=False,
|
| 202 |
-
elem_classes=["failed-tests"]
|
| 203 |
)
|
| 204 |
|
| 205 |
with gr.Column(visible=False, elem_classes=["historical-view"]) as historical_view:
|
|
@@ -216,7 +211,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 216 |
height=300,
|
| 217 |
x_label_angle=45,
|
| 218 |
y_title="Failure Rate (%)",
|
| 219 |
-
elem_classes=["plot-container"]
|
| 220 |
)
|
| 221 |
|
| 222 |
time_series_amd_tests = gr.LinePlot(
|
|
@@ -230,7 +224,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 230 |
height=300,
|
| 231 |
x_label_angle=45,
|
| 232 |
y_title="Number of Tests",
|
| 233 |
-
elem_classes=["plot-container"]
|
| 234 |
)
|
| 235 |
|
| 236 |
time_series_nvidia_tests = gr.LinePlot(
|
|
@@ -244,7 +237,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 244 |
height=300,
|
| 245 |
x_label_angle=45,
|
| 246 |
y_title="Number of Tests",
|
| 247 |
-
elem_classes=["plot-container"]
|
| 248 |
)
|
| 249 |
|
| 250 |
with gr.Column(visible=False, elem_classes=["time-series-detail-view"]) as time_series_detail_view:
|
|
@@ -259,7 +251,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 259 |
height=300,
|
| 260 |
x_label_angle=45,
|
| 261 |
y_title="Number of Tests",
|
| 262 |
-
elem_classes=["plot-container"]
|
| 263 |
)
|
| 264 |
|
| 265 |
time_series_nvidia_model_plot = gr.LinePlot(
|
|
@@ -273,7 +264,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css(), js=js_func)
|
|
| 273 |
height=300,
|
| 274 |
x_label_angle=45,
|
| 275 |
y_title="Number of Tests",
|
| 276 |
-
elem_classes=["plot-container"]
|
| 277 |
)
|
| 278 |
|
| 279 |
def toggle_model_list(current_visible):
|
|
|
|
| 20 |
'failed': '#E53E3E',
|
| 21 |
'skipped': '#FFD54F',
|
| 22 |
'error': '#8B0000',
|
| 23 |
+
'amd': '#FF6B6B',
|
| 24 |
'nvidia': '#76B900',
|
| 25 |
'background': '#0B0F19',
|
| 26 |
'text': '#FFFFFF'
|
|
|
|
| 151 |
|
| 152 |
if has_failures:
|
| 153 |
button_classes.append("model-button-failed")
|
|
|
|
| 154 |
|
| 155 |
btn = gr.Button(
|
| 156 |
display_name,
|
|
|
|
| 168 |
value=create_summary_page(Ci_results.df, Ci_results.available_models),
|
| 169 |
label="",
|
| 170 |
format="png",
|
|
|
|
| 171 |
visible=True
|
| 172 |
)
|
| 173 |
|
|
|
|
| 175 |
plot_output = gr.Plot(
|
| 176 |
label="",
|
| 177 |
format="png",
|
|
|
|
| 178 |
)
|
| 179 |
|
| 180 |
with gr.Row():
|
|
|
|
| 186 |
max_lines=8,
|
| 187 |
interactive=False,
|
| 188 |
container=False,
|
|
|
|
| 189 |
)
|
| 190 |
with gr.Column(scale=1):
|
| 191 |
nvidia_failed_tests_output = gr.Textbox(
|
|
|
|
| 195 |
max_lines=8,
|
| 196 |
interactive=False,
|
| 197 |
container=False,
|
|
|
|
| 198 |
)
|
| 199 |
|
| 200 |
with gr.Column(visible=False, elem_classes=["historical-view"]) as historical_view:
|
|
|
|
| 211 |
height=300,
|
| 212 |
x_label_angle=45,
|
| 213 |
y_title="Failure Rate (%)",
|
|
|
|
| 214 |
)
|
| 215 |
|
| 216 |
time_series_amd_tests = gr.LinePlot(
|
|
|
|
| 224 |
height=300,
|
| 225 |
x_label_angle=45,
|
| 226 |
y_title="Number of Tests",
|
|
|
|
| 227 |
)
|
| 228 |
|
| 229 |
time_series_nvidia_tests = gr.LinePlot(
|
|
|
|
| 237 |
height=300,
|
| 238 |
x_label_angle=45,
|
| 239 |
y_title="Number of Tests",
|
|
|
|
| 240 |
)
|
| 241 |
|
| 242 |
with gr.Column(visible=False, elem_classes=["time-series-detail-view"]) as time_series_detail_view:
|
|
|
|
| 251 |
height=300,
|
| 252 |
x_label_angle=45,
|
| 253 |
y_title="Number of Tests",
|
|
|
|
| 254 |
)
|
| 255 |
|
| 256 |
time_series_nvidia_model_plot = gr.LinePlot(
|
|
|
|
| 264 |
height=300,
|
| 265 |
x_label_angle=45,
|
| 266 |
y_title="Number of Tests",
|
|
|
|
| 267 |
)
|
| 268 |
|
| 269 |
def toggle_model_list(current_visible):
|