Spaces:
Running
on
Zero
Running
on
Zero
A newer version of the Gradio SDK is available:
5.32.0
metadata
title: Chroma
emoji: 🔥
colorFrom: blue
colorTo: pink
sdk: gradio
sdk_version: 5.14.0
app_file: app.py
pinned: true
license: apache-2.0
Chroma Image Generator
A Gradio app for generating images using the Chroma model by lodestones.
Features
- High-quality image generation using the Chroma model
- Customizable parameters: width, height, steps, CFG scale, and seed
- Pre-cached examples for instant preview and testing
- Professional UI with Gradio interface
Example Prompts
The app includes 11 pre-configured example prompts with optimized parameters:
- High-fashion portrait with anaglyph 3D effect
- Young man with captain's hat and sunglasses
- Shiba Inu with captain's hat and sunglasses
- Impressionistic sailing painting
- Anthro wolf in forest setting
- Dragon with galaxy wings over castle
- Anthro dog in NYC apartment
- Leopard geckos collage
- Anthro wolf plushie collage
- Telegram sticker anthro fox
- Tiger eye with 'Chroma' text overlay
Caching
The app uses Gradio's built-in cache_examples=True
feature to pre-generate and cache all example images. This means:
- Instant results when clicking on examples
- No waiting time for cached examples
- Automatic cache management by Gradio
- Faster user experience for trying different prompts
Usage
- Manual input: Enter your own prompt and adjust parameters
- Use examples: Click on any example to load it instantly
- Customize: Modify example prompts to create variations
- Generate: Click the Generate button to create new images
Parameters
- Prompt: Describe what you want to generate
- Negative Prompt: Describe what you want to avoid
- Width/Height: Image dimensions (512-2048px)
- Steps: Number of denoising steps (1-50)
- CFG Scale: How closely to follow the prompt (1-20)
- Seed: Random seed for reproducible results (-1 for random)
Technical Details
- Built with Gradio for the web interface
- Uses ComfyUI workflow backend
- Powered by Chroma diffusion model
- Supports GPU acceleration with Spaces
- Automatic caching for optimal performance
Running Locally
python app.py
The app will start and be available at http://localhost:7860
Cache Directory
Examples are cached in the gradio_cached_examples
directory. To rebuild the cache (if examples change), delete this directory and restart the app.
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference