ginipick commited on
Commit
73668fa
ยท
verified ยท
1 Parent(s): 1322bd7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +72 -1
README.md CHANGED
@@ -4,7 +4,78 @@ emoji: ๐Ÿ–ผ
4
  colorFrom: purple
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 5.30.0
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
+ ์ด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์€ ๋ณต์žกํ•œ ๊ฐœ๋…์„ ์‹œ๊ฐ์ ์œผ๋กœ ํ‘œํ˜„ํ•˜๊ณ ์ž ํ•˜๋Š” ๊ต์œก์ž, ํ”„๋ ˆ์  ํ„ฐ, ์ฝ˜ํ…์ธ  ํฌ๋ฆฌ์—์ดํ„ฐ์—๊ฒŒ ํŠนํžˆ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค.