Spaces:
Running
Running
chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)
Browse filesAutomated backend sync from szl-holdings/a11oy main via hf-sync-backend.
Updated (differed from the Space): a11oy_frontier_page.py
Deleted (gone from the repo + Dockerfile COPY set): (none)
Keeps the Space-built backend (serve.py + the Dockerfile-COPY'd .py
modules) identical to GitHub main so the Space never rebuilds from a
stale backend, new endpoints don't 404 there, and orphaned modules
removed from the repo don't linger in the Space tree.
- a11oy_frontier_page.py +4 -2
a11oy_frontier_page.py
CHANGED
|
@@ -81,9 +81,11 @@ _HOLOGRAPHIC_REL = "static/3d/holographic.html"
|
|
| 81 |
_VALID_LABELS = ("MEASURED", "LIVE", "SAMPLE", "MODELED", "STRUCTURAL-ONLY", "ROADMAP")
|
| 82 |
UNAVAILABLE = "UNAVAILABLE"
|
| 83 |
|
| 84 |
-
# `{ id: "grpo", title: "GRPO Reward Dynamics", mod: "/
|
|
|
|
|
|
|
| 85 |
_SURFACE_ENTRY_RE = re.compile(
|
| 86 |
-
r'\{\s*id:\s*"([^"]+)"
|
| 87 |
# Runtime-default label the surface renders absent live data: `S.label = (j.label || "MODELED")`.
|
| 88 |
_LABEL_DEFAULT_RE = re.compile(r'\b\w+\.label\s*=\s*\(\s*[\w.]+\s*\|\|\s*"([A-Z][A-Z-]+)"')
|
| 89 |
# Declared honesty chip / billboard token (surfaces without a runtime-default label).
|
|
|
|
| 81 |
_VALID_LABELS = ("MEASURED", "LIVE", "SAMPLE", "MODELED", "STRUCTURAL-ONLY", "ROADMAP")
|
| 82 |
UNAVAILABLE = "UNAVAILABLE"
|
| 83 |
|
| 84 |
+
# `{ id: "grpo", cat: "x", [flag: true,] title: "GRPO Reward Dynamics", mod: ".../grpo.js" }`
|
| 85 |
+
# id -> title -> mod is the stable authored order; interstitial keys (cat, flag, ...) are
|
| 86 |
+
# tolerated so the manifest tracks the real single-source registry rather than reporting 0.
|
| 87 |
_SURFACE_ENTRY_RE = re.compile(
|
| 88 |
+
r'\{\s*id:\s*"([^"]+)"[^{}]*?\btitle:\s*"([^"]+)"[^{}]*?\bmod:\s*"([^"]+)"[^{}]*\}')
|
| 89 |
# Runtime-default label the surface renders absent live data: `S.label = (j.label || "MODELED")`.
|
| 90 |
_LABEL_DEFAULT_RE = re.compile(r'\b\w+\.label\s*=\s*\(\s*[\w.]+\s*\|\|\s*"([A-Z][A-Z-]+)"')
|
| 91 |
# Declared honesty chip / billboard token (surfaces without a runtime-default label).
|