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: try gradio 5.x to fix json_schema bool bug + localhost handling
31954ed -
fix: use fully modern compatible stack (diffusers 0.30 + transformers 4.44 + gradio 4.40+)
19648b1 -
fix: pin jinja2<3.1 for gradio 4.12 compat + set GRADIO_SERVER_NAME env
3af3ad1 -
fix: pin full compatible stack: diffusers 0.24 + transformers 4.36 + gradio 4.12 + hf_hub 0.19.4
bd33fb4 -
fix: match original Dockerfile + pin huggingface_hub==0.19.4 in requirements.txt
- Revert Dockerfile to original (bare pip installs, matching zenotaiz original) - Only pin huggingface_hub==0.19.4 in requirements.txt for cached_download compat - HF Spaces Docker SDK processes requirements.txt after Dockerfile build96a41da -
fix: downgrade gradio to 4.38.0 (4.44 has bool iteration bug)
ada288c -
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 -
fix: use diffusers 0.30+ with huggingface_hub>=0.22 (cached_download removed)
57ef267 -
fix: upgrade to diffusers 0.28.0 + transformers 4.40 for modern huggingface_hub compat
36439f7 -
fix: pin huggingface_hub<0.20 for cached_download compat with diffusers 0.25.1
7b51f88 -
fix: pin dependency versions in Dockerfile to resolve diffusers/transformers incompatibility
The bare pip install in Dockerfile pulled latest incompatible versions causing CLIPImageProcessor ModuleNotFoundError. Pinning to known-good versions matching the original repo's runtime.91aeb19 -
fix: pin compatible diffusers/transformers versions to resolve CLIPImageProcessor import error
e71cfb9 -
fix: replace pinned requirements with bare package names to match original
The previous requirements.txt used invalid --extra-index-url syntax (pip CLI flag, not valid in requirements.txt) and overly pinned versions that caused dependency resolution failures on Hugging Face free tier. Now matches original zenotaiz/advanced-cpu-image-gen-v2 exactly.cb13afc -
Update requirements.txt
Verified signatureb1462ad
-
Upload folder using huggingface_hub
Verified signature7244537 -
initial commit
Verified signaturec62d474