Spaces:
Running
Running
Commit History
-
rollback Running
Moncef Souri30a44ac
-
fix(analysis): enforce 3-key JSON output and fix French placeholder responses
Moncef Souri- Rewrite prompt to instruction-style with filled example to prevent model from echoing placeholder strings as values - Strip extra keys (recommended_products, problèmes, etc.) at parse time - Add alias mapping for alternate key names (advice, analysis, routine variants) - Add placeholder guard to detect and reject echoed template strings - Sync default fallback responses to match 3-key structure - singleton Groq client + deduplicate detections before LLM call8cff4cb
-
Update app.py
Verified signaturerollback29154b3 -
perf: optimize CPU inference and add request caching
Verified signature- Replace per-request thread creation with shared ThreadPoolExecutor - Run YOLO, skin-type, and Groq API calls in parallel - Reduce YOLO input size from 640 to 416 for faster CPU inference - Downscale skin detection check to 128x128 before HSV analysis - Auto-export YOLO model to ONNX on first startup if onnxruntime is available - Add dynamic INT8 quantization for ResNet-50 skin-type model - Auto-detect quantization engine (fbgemm/qnnpack) with safe fallback - Add LRU image result cache (MD5-keyed, 50 entries, 1hr TTL) - Reduce max image size from 1024 to 640 - Force PyTorch to use all available CPU threads6ce3ada
-
rolling back last commit
3f94a62
-
fea:Adding API key filtering on Predict endpoint
4be7257 -
fea:Adding API key filtering on Predict endpoint
5ee5a74 -
rolling back last commit
46ca7ac -
fea:Adding API key filtering on Predict endpoint
934cffc
-
FEAT
2230bf7
-
feat :/ping endpoint for health check requirements in RapidApi
fb7d14b -
feat : API compatible with RapidAPI
24743d2
-
port adaptation
01c810c
-
revert old dockerfile
ce82e75 -
DOCKER FILE CHANGEMENT
3b79afc -
first commit feat :Performance enhancement ,
6433658 -
gitignore
7a2cf40 -
initial commit
Verified signaturef0b152f