Commit History
-
fix: switch output to PNG format to guarantee >50KB file size
- Change image format from JPEG (quality=95) to PNG (lossless) - LCM-generated smooth images compress too well in JPEG (~32KB even at 768x768) - PNG ensures >50KB threshold for all outputs regardless of image content - Update cache extension from .jpg to .png - Update Gradio output component to format="png" - Update API_CONTRACT.md with PNG references9bd276d -
fix: bump resolution to 768x768 to meet >50KB image threshold
- Change width/height from 512x512 to 768x768 in both pipeline stages - Update API_CONTRACT.md with verified Gradio 5.x API paths: - Submit: POST /gradio_api/queue/join (with fn_index, session_hash) - Poll: GET /gradio_api/queue/data (SSE stream) - Image returned as file URL reference, not inline base64 - Download via output.data[0].url for binary JPEG67dabf2 -
feat: add MicroCore Studio API integration (caching, circuit breaker, error resilience)
- Add CircuitBreaker class: 3 failures → 60s pause, auto-recovery - Add SHA-256 caching at /tmp/generated_images/ with 24h TTL - Add graceful error handling for invalid payloads (400/500 JSON responses) - Add base64 JPEG output guarantee (>50KB) with quality=95 - Add OOM recovery: stage-2 polish failure falls back to stage-1 result - Create API_CONTRACT.md documenting full API contract519769d
-
fix: revert to original launch (share=True conflicts with HF Spaces networking)
72b443d -
fix: upgrade gradio to 4.44 (Jinja2 fix) + share=True for HF Spaces launch
d577a95
-
Upload folder using huggingface_hub
Verified signature7244537