Spaces:
Running
on
Zero
Running
on
Zero
title: FLUX Text Tree Prompt - Mindmap Generator | |
emoji: ๐ผ | |
colorFrom: purple | |
colorTo: red | |
sdk: gradio | |
sdk_version: 5.35.0 | |
app_file: app.py | |
pinned: false | |
Looking at this code, it's a FLUX Text-Tree Image Generator that creates hand-drawn style mind map diagrams using AI. Let me provide explanations in both English and Korean. | |
## English Explanation | |
This is a Gradio application that uses the FLUX.1-schnell diffusion model to generate hand-drawn style mind map diagrams from text prompts. Here's how it works: | |
### Key Features: | |
1. **Model**: Uses FLUX.1-schnell from Black Forest Labs, a fast diffusion model optimized for quick generation | |
2. **Interface**: Split-screen layout with input controls on the left and examples on the right | |
3. **Functionality**: Converts structured text descriptions into visual mind map diagrams | |
### Main Components: | |
- **Text Input**: Users enter hierarchical text structures using tree-like formatting (โโโ, โ, โโโ) | |
- **Image Generation**: Creates 1024x1024 images by default with customizable dimensions | |
- **Examples**: 10 pre-made examples covering topics like Knowledge Tree, Digital Transformation, Creative Process, etc. | |
- **Advanced Settings**: Control seed, randomization, image dimensions, and inference steps | |
### Technical Details: | |
- Uses bfloat16 precision for efficient GPU memory usage | |
- Implements the @spaces.GPU() decorator for Hugging Face Spaces GPU allocation | |
- Fast generation with only 4 inference steps by default | |
- Custom CSS for an attractive, professional interface | |
### How to Use: | |
1. Enter a hierarchical text prompt describing your mind map structure | |
2. Click "Generate Diagram" or use one of the example templates | |
3. Adjust advanced settings if needed (seed, dimensions, steps) | |
4. The AI will generate a colorful, hand-drawn style diagram based on your input | |
--- | |
## ํ๊ธ ์ค๋ช | |
์ด ์ฝ๋๋ FLUX.1-schnell ํ์ฐ ๋ชจ๋ธ์ ์ฌ์ฉํ์ฌ ํ ์คํธ ํ๋กฌํํธ๋ก๋ถํฐ ์์ผ๋ก ๊ทธ๋ฆฐ ์คํ์ผ์ ๋ง์ธ๋๋งต ๋ค์ด์ด๊ทธ๋จ์ ์์ฑํ๋ Gradio ์ ํ๋ฆฌ์ผ์ด์ ์ ๋๋ค. | |
### ์ฃผ์ ๊ธฐ๋ฅ: | |
1. **๋ชจ๋ธ**: Black Forest Labs์ FLUX.1-schnell ์ฌ์ฉ - ๋น ๋ฅธ ์์ฑ์ ์ต์ ํ๋ ํ์ฐ ๋ชจ๋ธ | |
2. **์ธํฐํ์ด์ค**: ์ผ์ชฝ์ ์ ๋ ฅ ์ปจํธ๋กค, ์ค๋ฅธ์ชฝ์ ์์ ๊ฐ ์๋ ๋ถํ ํ๋ฉด ๋ ์ด์์ | |
3. **๊ธฐ๋ฅ**: ๊ตฌ์กฐํ๋ ํ ์คํธ ์ค๋ช ์ ์๊ฐ์ ๋ง์ธ๋๋งต ๋ค์ด์ด๊ทธ๋จ์ผ๋ก ๋ณํ | |
### ์ฃผ์ ๊ตฌ์ฑ ์์: | |
- **ํ ์คํธ ์ ๋ ฅ**: ์ฌ์ฉ์๊ฐ ํธ๋ฆฌ ํ์(โโโ, โ, โโโ)์ ์ฌ์ฉํ์ฌ ๊ณ์ธต์ ํ ์คํธ ๊ตฌ์กฐ ์ ๋ ฅ | |
- **์ด๋ฏธ์ง ์์ฑ**: ๊ธฐ๋ณธ 1024x1024 ์ด๋ฏธ์ง ์์ฑ, ํฌ๊ธฐ ์กฐ์ ๊ฐ๋ฅ | |
- **์์ **: ์ง์ ํธ๋ฆฌ, ๋์งํธ ์ ํ, ์ฐฝ์์ ๊ณผ์ ๋ฑ 10๊ฐ์ ์ฌ์ ์ ์๋ ์์ ์ ๊ณต | |
- **๊ณ ๊ธ ์ค์ **: ์๋, ๋ฌด์์ํ, ์ด๋ฏธ์ง ํฌ๊ธฐ, ์ถ๋ก ๋จ๊ณ ์ ์ด | |
### ๊ธฐ์ ์ ์ธ๋ถ์ฌํญ: | |
- ํจ์จ์ ์ธ GPU ๋ฉ๋ชจ๋ฆฌ ์ฌ์ฉ์ ์ํด bfloat16 ์ ๋ฐ๋ ์ฌ์ฉ | |
- Hugging Face Spaces GPU ํ ๋น์ ์ํ @spaces.GPU() ๋ฐ์ฝ๋ ์ดํฐ ๊ตฌํ | |
- ๊ธฐ๋ณธ 4๋จ๊ณ์ ์ถ๋ก ์ผ๋ก ๋น ๋ฅธ ์์ฑ ๊ฐ๋ฅ | |
- ๋งค๋ ฅ์ ์ด๊ณ ์ ๋ฌธ์ ์ธ ์ธํฐํ์ด์ค๋ฅผ ์ํ ์ปค์คํ CSS | |
### ์ฌ์ฉ ๋ฐฉ๋ฒ: | |
1. ๋ง์ธ๋๋งต ๊ตฌ์กฐ๋ฅผ ์ค๋ช ํ๋ ๊ณ์ธต์ ํ ์คํธ ํ๋กฌํํธ ์ ๋ ฅ | |
2. "Generate Diagram" ํด๋ฆญ ๋๋ ์์ ํ ํ๋ฆฟ ์ค ํ๋ ์ฌ์ฉ | |
3. ํ์์ ๊ณ ๊ธ ์ค์ ์กฐ์ (์๋, ํฌ๊ธฐ, ๋จ๊ณ) | |
4. AI๊ฐ ์ ๋ ฅ์ ๊ธฐ๋ฐํ์ฌ ๋ค์ฑ๋กญ๊ณ ์์ผ๋ก ๊ทธ๋ฆฐ ์คํ์ผ์ ๋ค์ด์ด๊ทธ๋จ ์์ฑ | |
### ์์ ์ฃผ์ : | |
- ์ง์ ํธ๋ฆฌ (Knowledge Tree) | |
- ๋์งํธ ์ ํ (Digital Transformation) | |
- ์ฐฝ์์ ๊ณผ์ (Creative Process) | |
- ๋ฏธ๋ ๋์ (Future Cities) | |
- ๊ฑด๊ฐ ์งํ (Health Evolution) | |
- ์ฐ์ฃผ ํ์ฌ (Space Exploration) | |
- ํด์ ํ์ (Ocean Innovation) | |
- ์์ ์ปดํจํ (Quantum Computing) | |
- ๋ฐ์ด์ค ์์ง๋์ด๋ง (Bio Engineering) | |
- AI ์งํ (AI Evolution) | |
์ด ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ณต์กํ ๊ฐ๋ ์ ์๊ฐ์ ์ผ๋ก ํํํ๊ณ ์ ํ๋ ๊ต์ก์, ํ๋ ์ ํฐ, ์ฝํ ์ธ ํฌ๋ฆฌ์์ดํฐ์๊ฒ ํนํ ์ ์ฉํฉ๋๋ค. |