Spaces:
Runtime error
Runtime error
Deploy Space: update src
Browse files820 unmodified lines82182282382482582682782882983083183283383483583683725 unmodified lines863864865866867868869870820 unmodified lines"""utc8 = timezone(timedelta(hours=8))# 1. Last eval time from online_status.jsonstatus_path = Path(root_dir) / "online_status.json"last_eval = "n/a"data_source = "TS-Bench"if status_path.exists():try:status = json.loads(status_path.read_text())finished = status.get("finished_at", "")if finished:dt = datetime.fromisoformat(finished.replace("Z", "+00:00"))last_eval = dt.astimezone(utc8).strftime("%Y-%m-%d %H:%M:%S") + " (UTC+8)"data_source = status.get("data_source", "TS-Bench")except Exception:pass25 unmodified linesparts = [f"**Data**: {data_source}",f"**Last eval**: {last_eval}",f"**Last evaluated**: {last_evaluated}",]if ds_parts:parts.append("**Refresh**: " + " 路 ".join(ds_parts))820 unmodified lines82182282382482582682782882983083183225 unmodified lines858859860861862863864820 unmodified lines"""utc8 = timezone(timedelta(hours=8))# 1. Load data source name from online_status.jsonstatus_path = Path(root_dir) / "online_status.json"data_source = "TS-Bench"if status_path.exists():try:status = json.loads(status_path.read_text())data_source = status.get("data_source", "TS-Bench")except Exception:pass25 unmodified linesparts = [f"**Data**: {data_source}",f"**Last eval**: {last_evaluated}",]if ds_parts:parts.append("**Refresh**: " + " 路 ".join(ds_parts))
src/utils.py+2-8