Spaces:
Sleeping
Sleeping
feat: update classifier model to local zero-shot NLI and enhance language detection with local library
2d0ef3b Deploy With Docker Compose
Topology
- Single container:
classifier-api - Volume mount:
./static:/app/staticfor persisted uploaded files - Healthcheck:
GET /health/liveness
Evidence:
docker-compose.yml
Command
cd classifier-general
docker compose up -d --build
Verify
docker compose ps
curl -s http://localhost:4002/health/liveness
Production hardening gaps
- No reverse proxy/TLS config in this repo.
- Initial model pull can require network access if the HF cache is cold.
- No horizontal scaling coordination for in-memory labels (
/configlabelmutates process-local state).
Evidence:
app/services/language_service.pyapp/services/classifier_service.pyapp/services/label_service.py
Unknown or inferred
- Unknown: expected deployment platform (only Docker artifacts are present).
- Inferred: this compose file targets local/dev usage.