Spaces:
Runtime error
Runtime error
Commit History
-
docs: rewrite HF Space README with full API docs, model specs, and MLOps stats
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>a8dae96 -
feat: add in-memory MLOps stats tracking and /mlops/stats endpoint
Lightweight stdlib-only counters (threading.Lock + defaultdict) that record predictions, latency, and inference mode split per session. /mlops/stats endpoint exposes live data to the admin dashboard. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f260f81 -
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: add GET / root endpoint so visiting the Space URL returns API info not 404
579892a -
fix: lazy numpy import so simulator mode works without numpy installed
231bf1f -
fix: port 7860 + slim deps (5 pkgs only) + graceful spatial fallback
d129594
-
fix: split pip installs into cached layers, add timeout, remove unused google-genai
75864a9 -
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 -
initial commit
Verified signature686ef8c