aiqcamp commited on
Commit
0118a77
Β·
verified Β·
1 Parent(s): 939960b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +223 -10
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
- # Add 15 more examples
75
- ADDITIONAL_EXAMPLES = [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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