Spaces:
Runtime error
Runtime error
Download src/benchmark_config.py from ThinkcatLab/LiveHouse-TS: direct link, hf CLI and curl.
- Browser
- Download file 773 Bytes
-
https://huggingface.co/spaces/ThinkcatLab/LiveHouse-TS/resolve/977458d0a8bd2788bef8a430e1b72bb4e3d77cf0/src/benchmark_config.py
- Command line
-
hf download hf://spaces/ThinkcatLab/LiveHouse-TS@977458d0a8bd2788bef8a430e1b72bb4e3d77cf0/src/benchmark_config.py
-
curl -L -o benchmark_config.py https://huggingface.co/spaces/ThinkcatLab/LiveHouse-TS/resolve/977458d0a8bd2788bef8a430e1b72bb4e3d77cf0/src/benchmark_config.py
773 Bytes
| """Unified timing for the live benchmark loop.""" | |
| from __future__ import annotations | |
| import os | |
| # One full cycle: TS-Bench collect → TSFM.ai eval → write results → leaderboard reload. | |
| BENCHMARK_INTERVAL_SECONDS = int( | |
| os.getenv( | |
| "TSFM_BENCH_INTERVAL_SECONDS", | |
| os.getenv("TSFM_EVAL_INTERVAL_SECONDS", "3600"), | |
| ) | |
| ) | |
| # Background poll interval: detect eval completion and refresh UI once (not shown to users). | |
| EVAL_WATCH_POLL_SECONDS = int(os.getenv("TSFM_EVAL_WATCH_POLL_SECONDS", "15")) | |
| # When false (default), the Space only displays pushed results — no API calls on startup. | |
| LIVE_EVAL_ENABLED = os.getenv("TSFM_LIVE_EVAL", "0").strip().lower() in {"1", "true", "yes", "on"} | |
| BENCHMARK_INTERVAL_MINUTES = BENCHMARK_INTERVAL_SECONDS // 60 | |