Spaces:
Runtime error
Runtime error
Commit History
-
feat: enable ONNX inference β student_model_quantized.onnx + onnxruntimeβ
- Add student_model_quantized.onnx (MobileNetV3 Large INT8, 4.4 MB) trained via ConvNeXt Base teacher β knowledge distillation β quantization on TrashNet (6 classes: cardboard/glass/metal/paper/plastic/trash) - Add onnxruntime>=1.18.0 to requirements.txt β activates ONNX inference mode automatically; Space no longer falls back to simulator - Update core/inference.py LABELS + SEVERITY_MAP to match TrashNet class order from class_mapping.json - Add gitignore exception for student_model_quantized.onnx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>71f4e92
-
feat: text-only classification via Gemini when no photo is attachedβ
- main.py: ClassifyRequest accepts text_description; when no image provided, skips student classifier and calls validate_text() directly - fallback_validator.py: add validate_text() method using Gemini text-only prompt; refactor shared Gemini call into _gemini_post() helper used by both image and text paths98be631 -
fix: lazy numpy import so simulator mode works without numpy installed
231bf1f
-
feat: accept base64 image input for classify endpoint
5e148de -
deploy EcoView ML backend to HuggingFace Spaceβ
FastAPI app with ONNX student classifier (simulator mode until model trained), Gemini 3.1 Flash-Lite VLM teacher fallback, spatial analysis endpoints, and data flywheel logging. Runs on CPU Basic free tier.363af29