This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Minimal FastAPI wrapper around Google TimesFM for self-hosted forecasting. | |
| Endpoints: | |
| GET /health liveness + model-loaded status | |
| POST /forecast batch forecast for one or more series | |
| Environment variables: | |
| TIMESFM_VARIANT "v1" (200m, default) or "v2" (500m) | |
| TIMESFM_BACKEND "cpu" (default) or "gpu" |