Spaces:
Sleeping
Sleeping
File size: 765 Bytes
bfdbebd c3f4311 bfdbebd c3f4311 bfdbebd c3f4311 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ---
title: SAM3 LS Backend
emoji: π―
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
pinned: false
---
# SAM3 Label Studio ML Backend
Phase 1: hardcoded predictions for round-trip testing with Label Studio.
Endpoints:
- `GET /health` β liveness
- `POST /setup` β LS project setup (no-op stub)
- `POST /predict` β returns one fixed bounding box per task
- `POST /webhook` β annotation events (logged, no-op)
Configure in Label Studio: Settings β Machine Learning β Add Model β URL = `https://<username>-sam3-ls-backend.hf.space`.
Expects an LS label config with:
- `<Image name="image" value="$image"/>`
- `<RectangleLabels name="label" toName="image">` containing a `<Label value="butterfly"/>` (or override `DEFAULT_LABEL` env var).
|