Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,6 @@ CACHED_EXAMPLES = {
|
|
41 |
}
|
42 |
}
|
43 |
|
44 |
-
# Example diagrams for various use cases
|
45 |
DIAGRAM_EXAMPLES = [
|
46 |
{
|
47 |
"title": "Project Management Flow",
|
@@ -68,11 +67,47 @@ DIAGRAM_EXAMPLES = [
|
|
68 |
βββ ANALYTICS [Graph Icon]""",
|
69 |
"width": 1024,
|
70 |
"height": 1024
|
71 |
-
}
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
{
|
77 |
"title": "Health & Wellness",
|
78 |
"prompt": """A handrawn colorful mind map diagram, wellness-focused style, health aspects.
|
@@ -85,8 +120,189 @@ ADDITIONAL_EXAMPLES = [
|
|
85 |
βββ DURATION [Clock Icon]""",
|
86 |
"width": 1024,
|
87 |
"height": 1024
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
-
# ... (λλ¨Έμ§ μμ λ€)
|
90 |
]
|
91 |
|
92 |
|
@@ -96,9 +312,6 @@ ADDITIONAL_EXAMPLES = [
|
|
96 |
|
97 |
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
class DiagramCache:
|
103 |
def __init__(self, cache_dir: Path):
|
104 |
self.cache_dir = cache_dir
|
|
|
41 |
}
|
42 |
}
|
43 |
|
|
|
44 |
DIAGRAM_EXAMPLES = [
|
45 |
{
|
46 |
"title": "Project Management Flow",
|
|
|
67 |
βββ ANALYTICS [Graph Icon]""",
|
68 |
"width": 1024,
|
69 |
"height": 1024
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"title": "Software Development Lifecycle",
|
73 |
+
"prompt": """A handrawn colorful mind map diagram, technical style, software development flow.
|
74 |
+
SDLC
|
75 |
+
βββ REQUIREMENTS [Document Icon]
|
76 |
+
βββ DESIGN [Blueprint Icon]
|
77 |
+
βββ DEVELOPMENT [Code Icon]
|
78 |
+
βββ TESTING
|
79 |
+
β βββ UNIT [Checkbox Icon]
|
80 |
+
β βββ INTEGRATION [Puzzle Icon]
|
81 |
+
βββ DEPLOYMENT [Rocket Icon]""",
|
82 |
+
"width": 1024,
|
83 |
+
"height": 1024
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"title": "Environmental Sustainability",
|
87 |
+
"prompt": """A handrawn colorful mind map diagram, nature-inspired style, environmental concept.
|
88 |
+
ECO-FRIENDLY
|
89 |
+
βββ REDUCE [Minus Icon]
|
90 |
+
βββ REUSE [Cycle Icon]
|
91 |
+
βββ RECYCLE [Triangle Icon]
|
92 |
+
βββ ENERGY
|
93 |
+
βββ SOLAR [Sun Icon]
|
94 |
+
βββ WIND [Windmill Icon]""",
|
95 |
+
"width": 1024,
|
96 |
+
"height": 1024
|
97 |
+
},
|
98 |
+
{
|
99 |
+
"title": "Business Strategy",
|
100 |
+
"prompt": """A handrawn colorful mind map diagram, professional style, business planning.
|
101 |
+
STRATEGY
|
102 |
+
βββ VISION [Eye Icon]
|
103 |
+
βββ MISSION [Target Icon]
|
104 |
+
βββ GOALS
|
105 |
+
β βββ SHORT-TERM [Clock Icon]
|
106 |
+
β βββ LONG-TERM [Calendar Icon]
|
107 |
+
βββ METRICS [Graph Icon]""",
|
108 |
+
"width": 1024,
|
109 |
+
"height": 1024
|
110 |
+
},
|
111 |
{
|
112 |
"title": "Health & Wellness",
|
113 |
"prompt": """A handrawn colorful mind map diagram, wellness-focused style, health aspects.
|
|
|
120 |
βββ DURATION [Clock Icon]""",
|
121 |
"width": 1024,
|
122 |
"height": 1024
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"title": "Innovation Process",
|
126 |
+
"prompt": """A handrawn colorful mind map diagram, creative style, innovation flow.
|
127 |
+
INNOVATION
|
128 |
+
βββ IDEATION [Lightbulb Icon]
|
129 |
+
βββ RESEARCH [Magnifier Icon]
|
130 |
+
βββ PROTOTYPING [Tools Icon]
|
131 |
+
βββ TESTING
|
132 |
+
βββ FEEDBACK [Chat Icon]
|
133 |
+
βββ ITERATION [Cycle Icon]""",
|
134 |
+
"width": 1024,
|
135 |
+
"height": 1024
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"title": "Data Science Workflow",
|
139 |
+
"prompt": """A handrawn colorful mind map diagram, technical style, data science process.
|
140 |
+
DATA SCIENCE
|
141 |
+
βββ COLLECTION [Database Icon]
|
142 |
+
βββ CLEANING [Filter Icon]
|
143 |
+
βββ ANALYSIS [Graph Icon]
|
144 |
+
βββ VISUALIZATION
|
145 |
+
βββ CHARTS [Bar Chart Icon]
|
146 |
+
βββ REPORTS [Document Icon]""",
|
147 |
+
"width": 1024,
|
148 |
+
"height": 1024
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"title": "Product Development",
|
152 |
+
"prompt": """A handrawn colorful mind map diagram, product-focused style, development stages.
|
153 |
+
PRODUCT
|
154 |
+
βββ RESEARCH [Magnifier Icon]
|
155 |
+
βββ DESIGN [Pencil Icon]
|
156 |
+
βββ BUILD [Tools Icon]
|
157 |
+
βββ LAUNCH
|
158 |
+
βββ TESTING [Checkbox Icon]
|
159 |
+
βββ RELEASE [Rocket Icon]""",
|
160 |
+
"width": 1024,
|
161 |
+
"height": 1024
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"title": "Time Management",
|
165 |
+
"prompt": """A handrawn colorful mind map diagram, organizational style, time concepts.
|
166 |
+
TIME
|
167 |
+
βββ PLANNING [Calendar Icon]
|
168 |
+
βββ PRIORITIES [Star Icon]
|
169 |
+
βββ EXECUTION [Clock Icon]
|
170 |
+
βββ REVIEW
|
171 |
+
βββ DAILY [Sun Icon]
|
172 |
+
βββ WEEKLY [Moon Icon]""",
|
173 |
+
"width": 1024,
|
174 |
+
"height": 1024
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"title": "Customer Journey",
|
178 |
+
"prompt": """A handrawn colorful mind map diagram, user-centric style, customer experience.
|
179 |
+
CUSTOMER
|
180 |
+
βββ AWARENESS [Eye Icon]
|
181 |
+
βββ CONSIDERATION [Think Icon]
|
182 |
+
βββ PURCHASE [Cart Icon]
|
183 |
+
βββ LOYALTY
|
184 |
+
βββ SUPPORT [Headset Icon]
|
185 |
+
βββ FEEDBACK [Star Icon]""",
|
186 |
+
"width": 1024,
|
187 |
+
"height": 1024
|
188 |
+
},
|
189 |
+
{
|
190 |
+
"title": "Financial Planning",
|
191 |
+
"prompt": """A handrawn colorful mind map diagram, finance-focused style, money management.
|
192 |
+
FINANCE
|
193 |
+
βββ INCOME [Dollar Icon]
|
194 |
+
βββ SAVINGS [Piggy Bank Icon]
|
195 |
+
βββ INVESTMENTS [Graph Icon]
|
196 |
+
βββ EXPENSES
|
197 |
+
βββ FIXED [Lock Icon]
|
198 |
+
βββ VARIABLE [Scale Icon]""",
|
199 |
+
"width": 1024,
|
200 |
+
"height": 1024
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"title": "Team Structure",
|
204 |
+
"prompt": """A handrawn colorful mind map diagram, organizational style, team hierarchy.
|
205 |
+
TEAM
|
206 |
+
βββ LEADERSHIP [Crown Icon]
|
207 |
+
βββ MANAGERS [Briefcase Icon]
|
208 |
+
βββ SPECIALISTS [Star Icon]
|
209 |
+
βββ SUPPORT
|
210 |
+
βββ HR [Heart Icon]
|
211 |
+
βββ IT [Gear Icon]""",
|
212 |
+
"width": 1024,
|
213 |
+
"height": 1024
|
214 |
+
},
|
215 |
+
{
|
216 |
+
"title": "Learning Methods",
|
217 |
+
"prompt": """A handrawn colorful mind map diagram, educational style, learning approaches.
|
218 |
+
LEARNING
|
219 |
+
βββ VISUAL [Eye Icon]
|
220 |
+
βββ AUDITORY [Ear Icon]
|
221 |
+
βββ READING [Book Icon]
|
222 |
+
βββ KINESTHETIC
|
223 |
+
βββ PRACTICE [Hand Icon]
|
224 |
+
βββ EXPERIENCE [Star Icon]""",
|
225 |
+
"width": 1024,
|
226 |
+
"height": 1024
|
227 |
+
},
|
228 |
+
{
|
229 |
+
"title": "Content Creation",
|
230 |
+
"prompt": """A handrawn colorful mind map diagram, creative style, content types.
|
231 |
+
CONTENT
|
232 |
+
βββ TEXT [Document Icon]
|
233 |
+
βββ IMAGES [Camera Icon]
|
234 |
+
βββ VIDEO [Play Icon]
|
235 |
+
βββ AUDIO
|
236 |
+
βββ PODCAST [Microphone Icon]
|
237 |
+
βββ MUSIC [Note Icon]""",
|
238 |
+
"width": 1024,
|
239 |
+
"height": 1024
|
240 |
+
},
|
241 |
+
{
|
242 |
+
"title": "Risk Management",
|
243 |
+
"prompt": """A handrawn colorful mind map diagram, analytical style, risk assessment.
|
244 |
+
RISK
|
245 |
+
βββ IDENTIFY [Eye Icon]
|
246 |
+
βββ ANALYZE [Graph Icon]
|
247 |
+
βββ MITIGATE [Shield Icon]
|
248 |
+
βββ MONITOR
|
249 |
+
βββ TRACK [Chart Icon]
|
250 |
+
βββ REPORT [Document Icon]""",
|
251 |
+
"width": 1024,
|
252 |
+
"height": 1024
|
253 |
+
},
|
254 |
+
{
|
255 |
+
"title": "Quality Assurance",
|
256 |
+
"prompt": """A handrawn colorful mind map diagram, technical style, quality control.
|
257 |
+
QUALITY
|
258 |
+
βββ STANDARDS [Checkmark Icon]
|
259 |
+
βββ TESTING [Magnifier Icon]
|
260 |
+
βββ INSPECTION [Eye Icon]
|
261 |
+
βββ IMPROVEMENT
|
262 |
+
βββ FEEDBACK [Chat Icon]
|
263 |
+
βββ ACTION [Gear Icon]""",
|
264 |
+
"width": 1024,
|
265 |
+
"height": 1024
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"title": "Communication Channels",
|
269 |
+
"prompt": """A handrawn colorful mind map diagram, network style, communication methods.
|
270 |
+
COMMUNICATION
|
271 |
+
βββ EMAIL [Envelope Icon]
|
272 |
+
βββ CHAT [Message Icon]
|
273 |
+
βββ PHONE [Phone Icon]
|
274 |
+
βββ MEETINGS
|
275 |
+
βββ VIRTUAL [Screen Icon]
|
276 |
+
βββ IN-PERSON [Group Icon]""",
|
277 |
+
"width": 1024,
|
278 |
+
"height": 1024
|
279 |
+
},
|
280 |
+
{
|
281 |
+
"title": "Career Development",
|
282 |
+
"prompt": """A handrawn colorful mind map diagram, professional style, career growth.
|
283 |
+
CAREER
|
284 |
+
βββ SKILLS [Tools Icon]
|
285 |
+
βββ EXPERIENCE [Clock Icon]
|
286 |
+
βββ NETWORK [Connect Icon]
|
287 |
+
βββ GOALS
|
288 |
+
βββ SHORT [Flag Icon]
|
289 |
+
βββ LONG [Mountain Icon]""",
|
290 |
+
"width": 1024,
|
291 |
+
"height": 1024
|
292 |
+
},
|
293 |
+
{
|
294 |
+
"title": "Problem Solving",
|
295 |
+
"prompt": """A handrawn colorful mind map diagram, analytical style, solution process.
|
296 |
+
PROBLEM
|
297 |
+
βββ IDENTIFY [Eye Icon]
|
298 |
+
βββ ANALYZE [Brain Icon]
|
299 |
+
βββ SOLVE [Key Icon]
|
300 |
+
βββ VERIFY
|
301 |
+
βββ TEST [Checkbox Icon]
|
302 |
+
βββ REVIEW [Magnifier Icon]""",
|
303 |
+
"width": 1024,
|
304 |
+
"height": 1024
|
305 |
}
|
|
|
306 |
]
|
307 |
|
308 |
|
|
|
312 |
|
313 |
|
314 |
|
|
|
|
|
|
|
315 |
class DiagramCache:
|
316 |
def __init__(self, cache_dir: Path):
|
317 |
self.cache_dir = cache_dir
|