Spaces:
Sleeping
Sleeping
Added hardware specs
Browse files
app.py
CHANGED
|
@@ -23,6 +23,22 @@ Ci_results.load_data()
|
|
| 23 |
Ci_results.schedule_data_reload()
|
| 24 |
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Load CSS from external file
|
| 27 |
def load_css():
|
| 28 |
try:
|
|
@@ -42,10 +58,7 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css()) as demo:
|
|
| 42 |
gr.Markdown("# 🤖 TCID", elem_classes=["sidebar-title"])
|
| 43 |
|
| 44 |
# Description with integrated last update time
|
| 45 |
-
|
| 46 |
-
description_text = f"**Transformer CI Dashboard**\n\n*Result overview by model and hardware (last updated: {Ci_results.last_update_time})*\n"
|
| 47 |
-
else:
|
| 48 |
-
description_text = f"**Transformer CI Dashboard**\n\n*Result overview by model and hardware (loading...)*\n"
|
| 49 |
description_display = gr.Markdown(description_text, elem_classes=["sidebar-description"])
|
| 50 |
|
| 51 |
# Summary button at the top
|
|
@@ -143,14 +156,6 @@ with gr.Blocks(title="Model Test Results Dashboard", css=load_css()) as demo:
|
|
| 143 |
outputs=[summary_display, detail_view]
|
| 144 |
)
|
| 145 |
|
| 146 |
-
# Function to get current description text
|
| 147 |
-
def get_description_text():
|
| 148 |
-
"""Get description text with integrated last update time."""
|
| 149 |
-
if Ci_results.last_update_time:
|
| 150 |
-
return f"**Transformer CI Dashboard**\n\n*Result overview by model and hardware (last updated: {Ci_results.last_update_time})*\n"
|
| 151 |
-
else:
|
| 152 |
-
return f"**Transformer CI Dashboard**\n\n*Result overview by model and hardware (loading...)*\n"
|
| 153 |
-
|
| 154 |
# Function to get CI job links
|
| 155 |
def get_ci_links():
|
| 156 |
"""Get CI job links from the most recent data."""
|
|
|
|
| 23 |
Ci_results.schedule_data_reload()
|
| 24 |
|
| 25 |
|
| 26 |
+
# Function to get current description text
|
| 27 |
+
def get_description_text():
|
| 28 |
+
"""Get description text with integrated last update time."""
|
| 29 |
+
msg = [
|
| 30 |
+
"Transformer CI Dashboard",
|
| 31 |
+
"-",
|
| 32 |
+
"amd runs on MI325",
|
| 33 |
+
"nvidia runs on A10",
|
| 34 |
+
]
|
| 35 |
+
msg = ["**" + x + "**" for x in msg] + [""]
|
| 36 |
+
if Ci_results.last_update_time:
|
| 37 |
+
msg.append(f"*Result overview by model and hardware (last updated: {Ci_results.last_update_time})*")
|
| 38 |
+
else:
|
| 39 |
+
msg.append("*Result overview by model and hardware (loading...)*")
|
| 40 |
+
return "<br>".join(msg)
|
| 41 |
+
|
| 42 |
# Load CSS from external file
|
| 43 |
def load_css():
|
| 44 |
try:
|
|
|
|
| 58 |
gr.Markdown("# 🤖 TCID", elem_classes=["sidebar-title"])
|
| 59 |
|
| 60 |
# Description with integrated last update time
|
| 61 |
+
description_text = get_description_text()
|
|
|
|
|
|
|
|
|
|
| 62 |
description_display = gr.Markdown(description_text, elem_classes=["sidebar-description"])
|
| 63 |
|
| 64 |
# Summary button at the top
|
|
|
|
| 156 |
outputs=[summary_display, detail_view]
|
| 157 |
)
|
| 158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
# Function to get CI job links
|
| 160 |
def get_ci_links():
|
| 161 |
"""Get CI job links from the most recent data."""
|