Spaces:
Sleeping
Sleeping
| title: hsFAST ML Service | |
| emoji: 𧬠| |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| # hsFAST ML Service | |
| FastAPI service serving the ESM2-35M + LoRA protein stability (ΞG) model for the | |
| Enzyme Stability ML Prediction Platform. | |
| This is the **ML inference backend** only β it is called server-to-server by the | |
| Node/Express API, not directly by the browser. | |
| ## Endpoints | |
| - `GET /health` β liveness + model status | |
| - `GET /model/info` β architecture + training metadata | |
| - `POST /predict` β ΞG for a single sequence (negative ΞG = more stable) | |
| - `POST /predict/batch` β ΞG for up to 100 sequences | |
| - `POST /suggest` β residue-level ΞΞG scan β ranked stabilizing mutations + hotspots | |
| - `GET /dataset/stats` β training dataset statistics | |
| ## Notes | |
| - The ESM2 weights are bundled in `models/best_model.pt` (Git LFS). | |
| - The tokenizer is pre-cached at build time (see `Dockerfile`) so runtime | |
| offline mode works. | |
| - First request after the Space wakes from sleep takes ~30β60 s (model load). | |