LaelaZ commited on
Commit
6d82bc9
Β·
verified Β·
1 Parent(s): c2c1e02

Update Space card (real eval numbers / honest framing)

Browse files
Files changed (1) hide show
  1. README.md +2 -0
README.md CHANGED
@@ -19,6 +19,8 @@ Training a model is the easy half. The half that actually ships is everything ar
19
 
20
  This repo is that production layer for an emotion classifier β€” six emotions (sadness, joy, love, anger, fear, surprise) with full per-class probabilities β€” built so the entire service, its demo UI, its test suite, and its load test run with **zero downloads** by swapping the model for a deterministic stub when `OFFLINE=1`. Flip `OFFLINE=0` and the same code path loads the real DistilBERT from the Hub.
21
 
 
 
22
  ## What it does
23
 
24
  - **`POST /predict`** β€” single (`{"text": ...}`) or batch (`{"texts": [...]}`), pydantic-validated, returns the top label plus the full probability distribution.
 
19
 
20
  This repo is that production layer for an emotion classifier β€” six emotions (sadness, joy, love, anger, fear, surprise) with full per-class probabilities β€” built so the entire service, its demo UI, its test suite, and its load test run with **zero downloads** by swapping the model for a deterministic stub when `OFFLINE=1`. Flip `OFFLINE=0` and the same code path loads the real DistilBERT from the Hub.
21
 
22
+ > **The deployed [Hugging Face Space](https://huggingface.co/spaces/LaelaZ/distilbert-emotion-api) runs the real fine-tuned model** (built `WITH_MODEL=1`, `OFFLINE=0`) β€” so the public demo serves genuine DistilBERT predictions (acc 0.920 / macro F1 0.874). The lean, torch-free offline stub is what powers CI, local `docker compose`, and the load test, so development stays instant and key-free.
23
+
24
  ## What it does
25
 
26
  - **`POST /predict`** β€” single (`{"text": ...}`) or batch (`{"texts": [...]}`), pydantic-validated, returns the top label plus the full probability distribution.