Spaces:
Paused
Paused
Download sensorflow/about/api.py from whassan/SensorflowStudio: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/whassan/SensorflowStudio/resolve/main/sensorflow/about/api.py
- Command line
-
hf download hf://spaces/whassan/SensorflowStudio/sensorflow/about/api.py
-
curl -L -o api.py https://huggingface.co/spaces/whassan/SensorflowStudio/resolve/main/sensorflow/about/api.py
639 Bytes
| """FastAPI routes for product version / About (GET /api/about, GET /api/version).""" | |
| from __future__ import annotations | |
| from typing import Any, Dict | |
| from fastapi import APIRouter | |
| from sensorflow.about.catalog import get_about, get_version | |
| router = APIRouter(prefix="/api", tags=["about"]) | |
| def about_payload() -> Dict[str, Any]: | |
| """Product name, current version, links, and chronological release notes.""" | |
| return get_about() | |
| def version_payload() -> Dict[str, Any]: | |
| """Current version plus the release list (for help chat / “what’s new”).""" | |
| return get_version() | |