Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3968,14 +3968,16 @@ def _sys_card(sid) -> str:
|
|
| 3968 |
f"<td style='color:{col};font-size:0.62em'>{sv}/{r}</td>"
|
| 3969 |
f"<td style='color:#555;font-size:0.62em'>{pct}</td></tr>")
|
| 3970 |
sys_=SYSTEMS[sid]; st_=sys_.stats()
|
| 3971 |
-
|
| 3972 |
-
|
| 3973 |
-
|
|
|
|
|
|
|
| 3974 |
notes={
|
| 3975 |
-
"AE":
|
| 3976 |
-
"AE2":
|
| 3977 |
-
"RFM":
|
| 3978 |
-
"QS":
|
| 3979 |
}
|
| 3980 |
note=notes.get(sid,"")
|
| 3981 |
return (f"<div class='card' style='border-top:3px solid {col}'>"
|
|
@@ -3991,11 +3993,10 @@ def _sys_card(sid) -> str:
|
|
| 3991 |
f"width:{min(100,round(n_s/max(1,n_t)*100))}%;"
|
| 3992 |
f"height:3px;border-radius:2px'></div></div>"
|
| 3993 |
f"<div style='color:#2a2a2a;font-size:0.56em'>"
|
| 3994 |
-
f"{ss.get('runs',0)}r
|
| 3995 |
f"{note}"
|
| 3996 |
f"<table style='width:100%;border-collapse:collapse;margin-top:2px'>"
|
| 3997 |
f"{rows}</table></div>")
|
| 3998 |
-
|
| 3999 |
def _sweep_table(sweep) -> str:
|
| 4000 |
if not sweep:
|
| 4001 |
return "<div style='color:#444'>Sweep pending...</div>"
|
|
|
|
| 3968 |
f"<td style='color:{col};font-size:0.62em'>{sv}/{r}</td>"
|
| 3969 |
f"<td style='color:#555;font-size:0.62em'>{pct}</td></tr>")
|
| 3970 |
sys_=SYSTEMS[sid]; st_=sys_.stats()
|
| 3971 |
+
mem_entries=MEMORY.stats()["n_entries"]
|
| 3972 |
+
ae_note="<div style='color:#26C6DA;font-size:0.56em'>v31·interval·HC4</div>"
|
| 3973 |
+
ae2_note="<div style='color:#4CAF50;font-size:0.56em'>v32·gradient·G1-G5</div>"
|
| 3974 |
+
rfm_note=f"<div style='color:#FFD600;font-size:0.56em'>{mem_entries}pat</div>"
|
| 3975 |
+
qs_note="<div style='color:#FF6D00;font-size:0.56em'>quantum sym</div>"
|
| 3976 |
notes={
|
| 3977 |
+
"AE": ae_note,
|
| 3978 |
+
"AE2": ae2_note,
|
| 3979 |
+
"RFM": rfm_note,
|
| 3980 |
+
"QS": qs_note,
|
| 3981 |
}
|
| 3982 |
note=notes.get(sid,"")
|
| 3983 |
return (f"<div class='card' style='border-top:3px solid {col}'>"
|
|
|
|
| 3993 |
f"width:{min(100,round(n_s/max(1,n_t)*100))}%;"
|
| 3994 |
f"height:3px;border-radius:2px'></div></div>"
|
| 3995 |
f"<div style='color:#2a2a2a;font-size:0.56em'>"
|
| 3996 |
+
f"{ss.get('runs',0)}r·{st_['avg_ms']}ms</div>"
|
| 3997 |
f"{note}"
|
| 3998 |
f"<table style='width:100%;border-collapse:collapse;margin-top:2px'>"
|
| 3999 |
f"{rows}</table></div>")
|
|
|
|
| 4000 |
def _sweep_table(sweep) -> str:
|
| 4001 |
if not sweep:
|
| 4002 |
return "<div style='color:#444'>Sweep pending...</div>"
|