Spaces:
Sleeping
Sleeping
|
Download README.md from OneWeekApp/leonardo-ai-design-test: direct link, hf CLI and curl.
- Browser
- Download file 2.72 kB
-
https://huggingface.co/spaces/OneWeekApp/leonardo-ai-design-test/resolve/main/README.md
- Command line
-
hf download hf://spaces/OneWeekApp/leonardo-ai-design-test/README.md
-
curl -L -o README.md https://huggingface.co/spaces/OneWeekApp/leonardo-ai-design-test/resolve/main/README.md
2.72 kB
| title: Leonardo AI Design Generator | |
| emoji: 🎨 | |
| colorFrom: purple | |
| colorTo: pink | |
| sdk: gradio | |
| app_file: app.py | |
| pinned: false | |
| # 🎨 Leonardo AI Design Generator | |
| Test Space for AI Software Factory - Leonardo AI Integration | |
| ## Description | |
| This HuggingFace Space demonstrates the integration with Leonardo AI for generating high-quality UI/UX design mockups. It's part of the AI Software Factory project for automated Flutter app development. | |
| ## Features | |
| - **Mobile App UI Mockups**: Generate professional mobile screen designs | |
| - **Web Dashboard Designs**: Create desktop application interfaces | |
| - **Landing Page Layouts**: Design modern landing page sections | |
| - **Customizable Prompts**: Full control over design parameters | |
| - **Real-time Credit Tracking**: Monitor your Leonardo AI credits | |
| ## How to Use | |
| 1. **Check Credits**: Click "Check Credits" to see your available Leonardo AI credits | |
| 2. **Configure Design**: | |
| - Choose a template type (Mobile App UI, Web Dashboard, or Landing Page) | |
| - Enter app type, screen type, visual style | |
| - Set color palette and layout elements | |
| 3. **Advanced Options**: | |
| - Override with custom prompt if needed | |
| - Adjust image dimensions (must be multiple of 8) | |
| - Choose number of variations (1-4) | |
| 4. **Generate**: Click "Generate Design" and wait for the result | |
| ## Setup | |
| To run this Space, you need a Leonardo AI API key: | |
| 1. Go to [Leonardo AI](https://app.leonardo.ai) | |
| 2. Navigate to User Menu → API Access | |
| 3. Generate an API Key | |
| 4. Add it as a **Secret** in your HuggingFace Space settings: | |
| - Name: `LEONARDO_API_KEY` | |
| - Value: Your API key | |
| ## API Endpoints | |
| When deployed, this Space exposes a REST API: | |
| ```bash | |
| POST /api/predict | |
| { | |
| "data": [ | |
| "Mobile App UI", # template_type | |
| "delivery app", # app_type | |
| "home screen", # screen_type | |
| "modern", # style | |
| "#FF0000, #00FF00", # colors | |
| "header, cards", # elements | |
| "", # custom_prompt | |
| 375, # width | |
| 812, # height | |
| 1 # num_images | |
| ] | |
| } | |
| ``` | |
| ## Cost | |
| Each image generation costs approximately **10-20 Leonardo AI credits**, depending on: | |
| - Image resolution | |
| - Number of images | |
| - Alchemy/Prompt Magic settings | |
| ## Technologies | |
| - **Leonardo AI**: Phoenix model for image generation | |
| - **Gradio**: Web interface framework | |
| - **Python**: Backend logic | |
| - **HuggingFace Spaces**: Deployment platform | |
| ## Related | |
| This Space is part of the [AI Software Factory](https://github.com/sabatino81/AISoftwareFactory) project: | |
| - 15 specialized agent Spaces on HuggingFace | |
| - Automated Flutter app generation | |
| - N8N workflow orchestration | |
| - Full CI/CD pipeline | |
| ## License | |
| MIT | |
| ## Author | |
| AI Software Factory Team | |