File size: 5,232 Bytes
9446685 ae75d6d 9446685 ae75d6d 9446685 0a258b9 ae75d6d 0a258b9 9446685 957b270 e2ed9b1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
---
title: UI Button Generator MCP
emoji: π
colorFrom: yellow
colorTo: blue
sdk: gradio
sdk_version: 5.39.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Button Create MCP call Z-Image-Turbo zero-gpu
tags:
- building-mcp-track-creative
---
## MCP 1st birthday
[details](https://huggingface.co/MCP-1st-Birthday)
## Social Media Post
I shared my project on X:
[View Post on X](https://x.com/Akihito_AI/status/1994658933357867378)
## Demo Video
The demo video is attached to the X post above. You can watch it directly here:
[Watch Demo Video on X](https://x.com/Akihito_AI/status/1994659192087744988)
## π Quick Start
1. **Open the App**: Launch the Gradio application
2. **Fill in Settings**: Configure your button design preferences
3. **Generate**: Click the "Generate Buttons" button
4. **Download**: Save your generated button images
## π Basic Settings
### Button Text
- Enter the text you want to display on your buttons
- You can enter multiple texts separated by commas (e.g., "Start, OK, Cancel")
- Supports up to 4 different button texts
### Detail Prompt
- Describe the design style you want (e.g., "Neon cyberpunk", "Minimal elegant", "Wood texture")
- This controls the overall aesthetic and visual elements
- Examples:
- "Neon glowing cyberpunk, blue/purple gradient"
- "Luxury gold texture, minimal elegant, serif"
- "Wood texture, steel rim, fantasy game style"
## π¨ Style & Layout
### Shape Options
- **Box**: Sharp rectangular corners
- **Rounded**: Soft rounded corners (default)
- **Oval**: Elliptical shape
- **Free**: Organic freeform shape
### Layout Options
- **Horizontal 3**: 3 buttons arranged in horizontal rows (top, middle, bottom)
- **Vertical 2**: 2 tall buttons arranged side by side (left, right)
- **Box 2x2**: 4 buttons in a 2x2 grid (left-top, right-top, left-bottom, right-bottom)
### Background Options
- **Natural**: Natural background with subtle textures and ambient lighting
- **White**: Plain white background
- **Black**: Plain black background
## βοΈ Advanced Settings
### Seed
- Controls the randomness of the generation
- Range: 0 to 2,147,483,647
- Use the same seed value to reproduce identical results
### Randomize Seed
- Toggle to enable/disable random seed generation
- When enabled, each generation uses a different random seed
### Aspect Ratio
- **1:1**: Square format (1024x1024) - Recommended
- **16:9**: Wide format (1280x720)
- **9:16**: Portrait format (720x1280)
### Guidance Scale
- Controls how closely the AI follows your prompt
- Default: 1.0 (recommended)
- Range: 1.0 to 5.0
### Steps
- Number of inference steps for image generation
- Default: 8 (recommended)
- Range: 4 to 28
- Higher values may improve quality but increase generation time
## π― Quick Presets
Use the example presets to get started quickly:
### 1. Cyberpunk Start Button
- **Text**: "Start, Option, Exit"
- **Style**: Neon glowing cyberpunk, blue/purple gradient
- **Shape**: Box
- **Layout**: Horizontal 3
- **Background**: Black
### 2. Luxury Buy Button
- **Text**: "Buy"
- **Style**: Luxury gold texture, minimal elegant, serif
- **Shape**: Rounded
- **Layout**: Vertical 2
- **Background**: White
### 3. Fantasy RPG Buttons
- **Text**: "RPG, R, P, G"
- **Style**: Wood texture, steel rim, fantasy game style
- **Shape**: Free
- **Layout**: Box 2x2
- **Background**: Natural
## π‘ Tips for Best Results
1. **Be Specific**: The more detailed your prompt, the better the results
2. **Use References**: Mention styles like "minimal", "cyberpunk", "vintage", etc.
3. **Experiment**: Try different combinations of settings
4. **Save Seeds**: Note down seeds for designs you like to reproduce them later
5. **Background Matters**: Choose background that complements your design
## π§ Technical Details
- **Model**: Z-Image-Turbo (Zero-GPU)
- **Resolution**: Up to 1024x1024 pixels
- **Format**: WebP output
- **Platform**: Gradio web interface
## π MCP Integration
This app supports MCP (Model Context Protocol) for enhanced functionality:
- Zero-GPU inference on Hugging Face Spaces
- Header authorization for API access
- Shareable links for collaboration
## πΈ Downloading Results
1. Generated images appear in the output panel
2. Right-click on the image to save
3. Images are automatically saved in WebP format
4. You can convert to other formats using image editors if needed
## π€ Troubleshooting
### Generation Failed
- Check your internet connection
- Try reducing the number of inference steps
- Verify your HF_TOKEN if using private models
### Poor Quality Results
- Increase the number of inference steps (up to 28)
- Make your prompt more specific
- Try different aspect ratios
### Slow Generation
- Use fewer inference steps (4-12)
- Use 1:1 aspect ratio for faster processing
- Close other browser tabs to free up resources
## π¨ Design Inspiration
Try these popular styles:
- **Minimal**: Clean, simple, flat design
- **Neon**: Cyberpunk with glowing effects
- **Vintage**: Retro 80s/90s aesthetics
- **Luxury**: Gold, black, premium materials
- **Fantasy**: Medieval, wood, magical themes
- **Sci-Fi**: Futuristic, metallic, high-tech
Enjoy creating your button designs! π¨β¨
|