Spaces:
Sleeping
Sleeping
| title: Jeeva Embedding Service | |
| emoji: π | |
| colorFrom: red | |
| colorTo: yellow | |
| sdk: docker | |
| pinned: false | |
| # Jeeva Embedding Service | |
| Single-purpose FastAPI service that accepts a dog photo and returns two 512-dim embedding vectors: | |
| - `face_embedding` β derived from the top 40% crop of the image (heuristic face region) | |
| - `body_embedding` β derived from the full image | |
| Uses [MegaDescriptor-T-224](https://huggingface.co/BVRA/MegaDescriptor-T-224) from the `wildlife-tools` package. | |
| ## Endpoints | |
| **POST /embed** | |
| - Accepts: `multipart/form-data` with a `file` field (image) | |
| - Returns: `{ face_embedding: float[], body_embedding: float[], dims: 512 }` | |
| **GET /health** | |
| - Returns: `{ status: "ok", model_loaded: bool, last_embed_ts: float | null }` | |
| ## Notes | |
| - First request after a cold start will be slow (~60β90s on CPU) while the model loads | |
| - All inference runs on CPU β no GPU required | |
| - Designed for POC scale; not optimised for throughput | |