Life² as a Hugging Face Space: game page + Gradio narrate/paint endpoints
Claude+1: Claude Opus 5.5
Unverified signature
510a1f1
FastAPI serves the Life2 page at /, /space-config, and a Gradio API at /gradio with
narrate (streamed, prompt built server-side from the fact sheet) and paint (prompt
must use only the game's own vocabulary). ZeroGPU: Qwen2.5-7B + SDXL-Turbo with the
fp16-safe VAE; CPU: Qwen2.5-1.5B + SD-Turbo. LIFE2_MOCK=1 for testing without models.
Workflow mirrors pushes to the Space once HF_TOKEN and HF_SPACE are set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eg7PDh5Nquz9zWpYMKwZBv