• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

galthran-wq / clip-web-service / 23550511119

25 Mar 2026 03:54PM UTC coverage: 89.247% (-1.7%) from 90.909%
23550511119

push

github

web-flow
Add CLIP zero-shot classification endpoint (#1)

* Add CLIP zero-shot classification endpoint using onnx_clip

Replace template placeholder with a working CLIP inference service.
Uses onnx_clip (ONNX Runtime) instead of PyTorch for lightweight
CPU inference (~5-10ms/image, ~70MB deps vs ~1.5GB for torch).

- POST /classify/batch: accepts base64 images + text prompts, returns
  softmax probabilities
- CLIPService wraps OnnxClip with base64 decoding and batch inference
- Readiness probe gates on model loaded state (503 until ready)
- 18 tests, 90% coverage, mypy strict clean

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Fix per-image softmax normalization

Applied via @cursor push command

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>

75 of 89 new or added lines in 8 files covered. (84.27%)

166 of 186 relevant lines covered (89.25%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.7
/src/main.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc