Spaces:
Runtime error
Runtime error
UI-only mode: disable in-container eval
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from src.about import (
|
|
| 11 |
LLM_BENCHMARKS_TEXT,
|
| 12 |
TITLE,
|
| 13 |
)
|
| 14 |
-
from src.benchmark_config import BENCHMARK_INTERVAL_SECONDS, EVAL_WATCH_POLL_SECONDS
|
| 15 |
from src.display.css_html_js import (
|
| 16 |
build_custom_css,
|
| 17 |
eval_countdown_head_js,
|
|
@@ -56,6 +56,14 @@ def build_status_line(status: dict) -> str:
|
|
| 56 |
|
| 57 |
if eval_status == "running":
|
| 58 |
live_hint = "**Evaluating now** — collecting TS-Bench data and calling TSFM.ai…"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
elif eval_status == "disabled":
|
| 60 |
live_hint = f"**Live eval off** — {eval_message}"
|
| 61 |
else:
|
|
|
|
| 11 |
LLM_BENCHMARKS_TEXT,
|
| 12 |
TITLE,
|
| 13 |
)
|
| 14 |
+
from src.benchmark_config import BENCHMARK_INTERVAL_SECONDS, EVAL_WATCH_POLL_SECONDS, LIVE_EVAL_ENABLED
|
| 15 |
from src.display.css_html_js import (
|
| 16 |
build_custom_css,
|
| 17 |
eval_countdown_head_js,
|
|
|
|
| 56 |
|
| 57 |
if eval_status == "running":
|
| 58 |
live_hint = "**Evaluating now** — collecting TS-Bench data and calling TSFM.ai…"
|
| 59 |
+
elif not LIVE_EVAL_ENABLED:
|
| 60 |
+
if eval_status in {"ok", "partial"}:
|
| 61 |
+
live_hint = (
|
| 62 |
+
f"**Leaderboard** · Last eval `{finished}` · "
|
| 63 |
+
f"results updated every **{BENCHMARK_INTERVAL_SECONDS // 60} min** from local runner"
|
| 64 |
+
)
|
| 65 |
+
else:
|
| 66 |
+
live_hint = "**Leaderboard** · waiting for first results push from local runner"
|
| 67 |
elif eval_status == "disabled":
|
| 68 |
live_hint = f"**Live eval off** — {eval_message}"
|
| 69 |
else:
|