Spaces:
Running
on
Zero
Running
on
Zero
Update README.md
Browse files
README.md
CHANGED
@@ -4,7 +4,78 @@ emoji: ๐ผ
|
|
4 |
colorFrom: purple
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 5.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
colorFrom: purple
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.35.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
11 |
+
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.
|
12 |
+
|
13 |
+
## English Explanation
|
14 |
+
|
15 |
+
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:
|
16 |
+
|
17 |
+
### Key Features:
|
18 |
+
1. **Model**: Uses FLUX.1-schnell from Black Forest Labs, a fast diffusion model optimized for quick generation
|
19 |
+
2. **Interface**: Split-screen layout with input controls on the left and examples on the right
|
20 |
+
3. **Functionality**: Converts structured text descriptions into visual mind map diagrams
|
21 |
+
|
22 |
+
### Main Components:
|
23 |
+
- **Text Input**: Users enter hierarchical text structures using tree-like formatting (โโโ, โ, โโโ)
|
24 |
+
- **Image Generation**: Creates 1024x1024 images by default with customizable dimensions
|
25 |
+
- **Examples**: 10 pre-made examples covering topics like Knowledge Tree, Digital Transformation, Creative Process, etc.
|
26 |
+
- **Advanced Settings**: Control seed, randomization, image dimensions, and inference steps
|
27 |
+
|
28 |
+
### Technical Details:
|
29 |
+
- Uses bfloat16 precision for efficient GPU memory usage
|
30 |
+
- Implements the @spaces.GPU() decorator for Hugging Face Spaces GPU allocation
|
31 |
+
- Fast generation with only 4 inference steps by default
|
32 |
+
- Custom CSS for an attractive, professional interface
|
33 |
+
|
34 |
+
### How to Use:
|
35 |
+
1. Enter a hierarchical text prompt describing your mind map structure
|
36 |
+
2. Click "Generate Diagram" or use one of the example templates
|
37 |
+
3. Adjust advanced settings if needed (seed, dimensions, steps)
|
38 |
+
4. The AI will generate a colorful, hand-drawn style diagram based on your input
|
39 |
+
|
40 |
+
---
|
41 |
+
|
42 |
+
## ํ๊ธ ์ค๋ช
|
43 |
+
|
44 |
+
์ด ์ฝ๋๋ FLUX.1-schnell ํ์ฐ ๋ชจ๋ธ์ ์ฌ์ฉํ์ฌ ํ
์คํธ ํ๋กฌํํธ๋ก๋ถํฐ ์์ผ๋ก ๊ทธ๋ฆฐ ์คํ์ผ์ ๋ง์ธ๋๋งต ๋ค์ด์ด๊ทธ๋จ์ ์์ฑํ๋ Gradio ์ ํ๋ฆฌ์ผ์ด์
์
๋๋ค.
|
45 |
+
|
46 |
+
### ์ฃผ์ ๊ธฐ๋ฅ:
|
47 |
+
1. **๋ชจ๋ธ**: Black Forest Labs์ FLUX.1-schnell ์ฌ์ฉ - ๋น ๋ฅธ ์์ฑ์ ์ต์ ํ๋ ํ์ฐ ๋ชจ๋ธ
|
48 |
+
2. **์ธํฐํ์ด์ค**: ์ผ์ชฝ์ ์
๋ ฅ ์ปจํธ๋กค, ์ค๋ฅธ์ชฝ์ ์์ ๊ฐ ์๋ ๋ถํ ํ๋ฉด ๋ ์ด์์
|
49 |
+
3. **๊ธฐ๋ฅ**: ๊ตฌ์กฐํ๋ ํ
์คํธ ์ค๋ช
์ ์๊ฐ์ ๋ง์ธ๋๋งต ๋ค์ด์ด๊ทธ๋จ์ผ๋ก ๋ณํ
|
50 |
+
|
51 |
+
### ์ฃผ์ ๊ตฌ์ฑ ์์:
|
52 |
+
- **ํ
์คํธ ์
๋ ฅ**: ์ฌ์ฉ์๊ฐ ํธ๋ฆฌ ํ์(โโโ, โ, โโโ)์ ์ฌ์ฉํ์ฌ ๊ณ์ธต์ ํ
์คํธ ๊ตฌ์กฐ ์
๋ ฅ
|
53 |
+
- **์ด๋ฏธ์ง ์์ฑ**: ๊ธฐ๋ณธ 1024x1024 ์ด๋ฏธ์ง ์์ฑ, ํฌ๊ธฐ ์กฐ์ ๊ฐ๋ฅ
|
54 |
+
- **์์ **: ์ง์ ํธ๋ฆฌ, ๋์งํธ ์ ํ, ์ฐฝ์์ ๊ณผ์ ๋ฑ 10๊ฐ์ ์ฌ์ ์ ์๋ ์์ ์ ๊ณต
|
55 |
+
- **๊ณ ๊ธ ์ค์ **: ์๋, ๋ฌด์์ํ, ์ด๋ฏธ์ง ํฌ๊ธฐ, ์ถ๋ก ๋จ๊ณ ์ ์ด
|
56 |
+
|
57 |
+
### ๊ธฐ์ ์ ์ธ๋ถ์ฌํญ:
|
58 |
+
- ํจ์จ์ ์ธ GPU ๋ฉ๋ชจ๋ฆฌ ์ฌ์ฉ์ ์ํด bfloat16 ์ ๋ฐ๋ ์ฌ์ฉ
|
59 |
+
- Hugging Face Spaces GPU ํ ๋น์ ์ํ @spaces.GPU() ๋ฐ์ฝ๋ ์ดํฐ ๊ตฌํ
|
60 |
+
- ๊ธฐ๋ณธ 4๋จ๊ณ์ ์ถ๋ก ์ผ๋ก ๋น ๋ฅธ ์์ฑ ๊ฐ๋ฅ
|
61 |
+
- ๋งค๋ ฅ์ ์ด๊ณ ์ ๋ฌธ์ ์ธ ์ธํฐํ์ด์ค๋ฅผ ์ํ ์ปค์คํ
CSS
|
62 |
+
|
63 |
+
### ์ฌ์ฉ ๋ฐฉ๋ฒ:
|
64 |
+
1. ๋ง์ธ๋๋งต ๊ตฌ์กฐ๋ฅผ ์ค๋ช
ํ๋ ๊ณ์ธต์ ํ
์คํธ ํ๋กฌํํธ ์
๋ ฅ
|
65 |
+
2. "Generate Diagram" ํด๋ฆญ ๋๋ ์์ ํ
ํ๋ฆฟ ์ค ํ๋ ์ฌ์ฉ
|
66 |
+
3. ํ์์ ๊ณ ๊ธ ์ค์ ์กฐ์ (์๋, ํฌ๊ธฐ, ๋จ๊ณ)
|
67 |
+
4. AI๊ฐ ์
๋ ฅ์ ๊ธฐ๋ฐํ์ฌ ๋ค์ฑ๋กญ๊ณ ์์ผ๋ก ๊ทธ๋ฆฐ ์คํ์ผ์ ๋ค์ด์ด๊ทธ๋จ ์์ฑ
|
68 |
+
|
69 |
+
### ์์ ์ฃผ์ :
|
70 |
+
- ์ง์ ํธ๋ฆฌ (Knowledge Tree)
|
71 |
+
- ๋์งํธ ์ ํ (Digital Transformation)
|
72 |
+
- ์ฐฝ์์ ๊ณผ์ (Creative Process)
|
73 |
+
- ๋ฏธ๋ ๋์ (Future Cities)
|
74 |
+
- ๊ฑด๊ฐ ์งํ (Health Evolution)
|
75 |
+
- ์ฐ์ฃผ ํ์ฌ (Space Exploration)
|
76 |
+
- ํด์ ํ์ (Ocean Innovation)
|
77 |
+
- ์์ ์ปดํจํ
(Quantum Computing)
|
78 |
+
- ๋ฐ์ด์ค ์์ง๋์ด๋ง (Bio Engineering)
|
79 |
+
- AI ์งํ (AI Evolution)
|
80 |
+
|
81 |
+
์ด ์ ํ๋ฆฌ์ผ์ด์
์ ๋ณต์กํ ๊ฐ๋
์ ์๊ฐ์ ์ผ๋ก ํํํ๊ณ ์ ํ๋ ๊ต์ก์, ํ๋ ์ ํฐ, ์ฝํ
์ธ ํฌ๋ฆฌ์์ดํฐ์๊ฒ ํนํ ์ ์ฉํฉ๋๋ค.
|