Spaces:
Running
Running
Commit History
13 days ago
-
feat: implement owlsonic-ml-worker
- Add stateless ML inference worker (worker/) - ClapAudioEmbeddingProvider: audio embeddings via laion/clap-htsat-fused - ClapZeroShotEmotionProvider: zero-shot emotion via shared CLAP text encoder - E5TextEmbeddingProvider: lyrics/text embeddings via multilingual-e5-small - WorkerService: concurrency gate, request lifecycle, timings - Worker API: /health/live, /health/ready, /v1/capabilities, /v1/audio/embeddings, /v1/emotions/from-audio-embeddings, /v1/text/embeddings - Fix critical bugs found in code review - C-1: isinstance on factory functions -> isinstance(e, WorkerError) - C-2: guard service.load_models() when service is None; fix missing return app when enable_legacy_api=False - C-3: lazy-import legacy modules (torch, application.py) only when OWLSONIC_ENABLE_LEGACY_API=true - Fix correctness issues - H-1: enforce L2 normalization of input embedding in _compute_scores - H-2: prepend E5 'query: ' prefix to every chunk, not just the whole text …37a9a36