Spaces:
Running
Running
File size: 20,174 Bytes
432e12b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# constants.py
"""Constants and configurations for PPT Generator"""
# Example templates (English and Korean versions)
EXAMPLE_TOPICS = {
"English": {
"Business Proposal": "AI-powered Customer Service Automation Platform Investment Proposal",
"Product Launch": "Smart Home IoT Security System New Product Launch",
"Project Report": "Digital Transformation Project Q3 Performance Report",
"Strategy Planning": "2025 Global Market Entry Strategy Development"
},
"Korean": {
"Business Proposal": "AI ๊ธฐ๋ฐ ๊ณ ๊ฐ ์๋น์ค ์๋ํ ํ๋ซํผ ํฌ์ ์ ์",
"Product Launch": "์ค๋งํธ ํ IoT ๋ณด์ ์์คํ
์ ์ ํ ๋ฐ์นญ",
"Project Report": "๋์งํธ ์ ํ ํ๋ก์ ํธ 3๋ถ๊ธฐ ์ฑ๊ณผ ๋ณด๊ณ ",
"Strategy Planning": "2025๋
๊ธ๋ก๋ฒ ์์ฅ ์ง์ถ ์ ๋ต ์๋ฆฝ"
}
}
# Audience types definition (English)
AUDIENCE_TYPES = {
"Executives/C-Level": {
"description": "C-level executives, decision makers",
"tone": "Strategic, results-focused, ROI emphasis",
"focus": "Business value, ROI, strategic impact"
},
"Investors": {
"description": "VCs, angel investors, institutional investors",
"tone": "Data-driven, growth potential, market opportunities",
"focus": "Market size, growth rate, competitive advantage, exit strategy"
},
"Technical Team": {
"description": "Developers, engineers, IT professionals",
"tone": "Technical, specific, practical",
"focus": "Tech stack, architecture, implementation, performance"
},
"General Staff": {
"description": "Team members, practitioners",
"tone": "Friendly, practical, collaboration-focused",
"focus": "Execution plan, roles, processes, collaboration"
},
"Customers/Partners": {
"description": "B2B customers, business partners",
"tone": "Trustworthy, professional, benefit-focused",
"focus": "Customer value, benefits, case studies, support"
},
"General Public": {
"description": "B2C customers, general users",
"tone": "Easy and friendly, easy to understand",
"focus": "Ease of use, benefits, pricing, differentiation"
}
}
# Design themes definition
DESIGN_THEMES = {
"Minimal Light": {
"name": "Minimal Light",
"description": "Bright and clean minimal design",
"background": (250, 250, 252),
"title_color": (33, 37, 41),
"subtitle_color": (52, 58, 64),
"text_color": (73, 80, 87),
"accent_color": (0, 123, 255),
"box_fill": (255, 255, 255),
"box_opacity": 0.95,
"shadow": True,
"gradient": False
},
"Modern Gradient": {
"name": "Modern Gradient",
"description": "Smooth gradients with modern feel",
"background": (245, 247, 250),
"title_color": (25, 42, 86),
"subtitle_color": (68, 85, 102),
"text_color": (85, 102, 119),
"accent_color": (103, 58, 183),
"box_fill": (249, 250, 251),
"box_opacity": 0.9,
"shadow": True,
"gradient": True
},
"Dark Elegance": {
"name": "Dark Elegance",
"description": "Sophisticated dark mode design",
"background": (25, 25, 35),
"title_color": (240, 240, 245),
"subtitle_color": (200, 200, 210),
"text_color": (170, 170, 180),
"accent_color": (0, 188, 212),
"box_fill": (35, 35, 45),
"box_opacity": 0.85,
"shadow": False,
"gradient": False
},
"Nature Green": {
"name": "Nature Green",
"description": "Eco-friendly green theme",
"background": (242, 248, 244),
"title_color": (27, 67, 50),
"subtitle_color": (45, 106, 79),
"text_color": (64, 125, 98),
"accent_color": (76, 175, 80),
"box_fill": (255, 255, 255),
"box_opacity": 0.92,
"shadow": True,
"gradient": False
},
"Corporate Blue": {
"name": "Corporate Blue",
"description": "Professional business style",
"background": (244, 247, 252),
"title_color": (13, 71, 161),
"subtitle_color": (25, 118, 210),
"text_color": (42, 63, 84),
"accent_color": (33, 150, 243),
"box_fill": (255, 255, 255),
"box_opacity": 0.95,
"shadow": True,
"gradient": False
}
}
# Style templates definition
STYLE_TEMPLATES = {
"Title Slide (Hero)": {
"name": "Title Slide",
"description": "Impactful hero image for title slide",
"use_case": "Cover, Title",
"example": "A dramatic wide-angle view of a modern glass skyscraper reaching into clouds with golden sunset lighting, symbolizing growth and ambition. Ultra-realistic photography style, cinematic composition, lens flare, professional corporate aesthetic"
},
"Thank You Slide": {
"name": "Closing Slide",
"description": "Elegant closing slide design with conclusion",
"use_case": "Presentation closing",
"example": "Abstract elegant background with soft gradient from deep blue to purple, golden particles floating like celebration confetti, subtle light rays, with space for conclusion text. Minimalist, professional, warm feeling"
},
"3D Style (Pixar-like)": {
"name": "3D Style",
"description": "Pixar-esque 3D render with volumetric lighting",
"use_case": "Cover, Vision, Future concept",
"example": "A fluffy ginger cat wearing a tiny spacesuit, floating amidst a vibrant nebula in a 3D render. The cat is gazing curiously at a swirling planet with rings made of candy. Background is filled with sparkling stars and colorful gas clouds, lit with soft, volumetric lighting. Style: Pixar-esque, highly detailed, playful. Colors: Deep blues, purples, oranges, and pinks. Rendered in Octane, 8k resolution."
},
"Elegant SWOT Quadrant": {
"name": "SWOT Analysis",
"description": "Flat-design 4-grid layout with minimal shadows",
"use_case": "Current state analysis, Strategy evaluation",
"example": "Elegant SWOT quadrant: flat-design 4-grid on matte-white backdrop, thin pastel separators, top-left 'Strengths' panel shows glowing shield icon and subtle motif, top-right 'Weaknesses' panel with cracked chain icon in soft crimson, bottom-left 'Opportunities' panel with sunrise-over-horizon icon in optimistic teal, bottom-right 'Threats' panel with storm-cloud & lightning icon in deep indigo, minimal shadows, no text, no watermark, 16:9, 4K"
},
"Colorful Mind Map": {
"name": "Mind Map",
"description": "Hand-drawn educational style with vibrant colors",
"use_case": "Brainstorming, Idea organization",
"example": "A handrawn colorful mind map diagram: educational style, vibrant colors, clear hierarchy, golden ratio layout. Central concept with branching sub-topics, each branch with unique color coding, organic flowing connections, doodle-style icons for each node"
},
"Business Workflow": {
"name": "Business Process",
"description": "End-to-end business workflow with clear phases",
"use_case": "Process explanation, Step-by-step progress",
"example": "A detailed hand-drawn diagram illustrating an end-to-end business workflow with Market Analysis, Strategy Development, Product Design, Implementation, and Post-Launch Review phases. Clear directional arrows, iconography for each component, vibrant educational yet professional style",
"is_process_flow": True
},
"Industrial Design": {
"name": "Product Design",
"description": "Sleek industrial design concept sketch",
"use_case": "Product introduction, Concept design",
"example": "A sleek industrial design concept: Curved metallic body with minimal bezel, Touchscreen panel for settings, Modern matte black finish, Hand-drawn concept sketch style with annotations and dimension lines"
},
"3D Bubble Chart": {
"name": "Bubble Chart",
"description": "Clean 3D bubble visualization",
"use_case": "Comparative analysis, Positioning",
"example": "3-D bubble chart on clean white 2ร2 grid, quadrant titles hidden, four translucent spheres in lime, azure, amber, magenta, gentle depth-of-field, modern consulting aesthetic, no text, 4K"
},
"Timeline Ribbon": {
"name": "Timeline",
"description": "Horizontal ribbon timeline with cyber-futuristic vibe",
"use_case": "Schedule, Roadmap, Milestones",
"example": "Horizontal ribbon timeline, milestone pins glowing hot pink on charcoal, year markers as circles, faint motion streaks, cyber-futuristic vibe, no text, 1920ร1080"
},
"Risk Heat Map": {
"name": "Heat Map",
"description": "Risk assessment heat map with gradient colors",
"use_case": "Risk analysis, Prioritization",
"example": "Risk Heat Map: square grid, smooth gradient from mint to fire-red, cells beveled, simple legend strip hidden, long subtle shadow, sterile white frame, no text"
},
"Pyramid/Funnel": {
"name": "Funnel Chart",
"description": "Multi-layer gradient funnel visualization",
"use_case": "Step-by-step reduction, Core extraction",
"example": "Pyramid / Funnel: 5-layer gradient funnel narrowing downwards, top vivid sky-blue, mid mint-green, bottom sunset-orange, glass reflection, minimal background, no text"
},
"KPI Dashboard": {
"name": "Dashboard",
"description": "Dark-mode analytics dashboard with sci-fi interface",
"use_case": "Performance metrics, Results dashboard",
"example": "KPI Dashboard: Dark-mode analytic dashboard, three glass speedometers glowing neon lime, two sparkline charts under, black glass background, sci-fi interface, no text, 4K"
},
"Value Chain": {
"name": "Value Chain",
"description": "Horizontal value chain with industrial look",
"use_case": "Value chain, Business model",
"example": "Value Chain Diagram: Horizontal value chain blocks, steel-blue gradient bars with subtle bevel, small gear icons above each segment, sleek industrial look, shadow cast, no text"
},
"Gantt Chart": {
"name": "Gantt Chart",
"description": "Hand-drawn style Gantt chart with playful colors",
"use_case": "Project schedule, Task management",
"example": "Gantt Chart: Hand-drawn style Gantt bars sketched with vibrant markers on dotted grid notebook page, sticky-note color palette, playful yet organized, perspective tilt, no text"
},
"Mobile App Mockup": {
"name": "App Mockup",
"description": "Clean wireframe for mobile app design",
"use_case": "App/Web UI, Screen design",
"example": "MOCKUP DESIGN: A clean hand-drawn style wireframe for a mobile app with Title screen, Login screen, Dashboard with sections, Bottom navigation bar, minimalist design with annotations"
},
"Flowchart": {
"name": "Flowchart",
"description": "Vibrant flowchart with minimalistic icons",
"use_case": "Decision making, Process flow",
"example": "FLOWCHART DESIGN: A hand-drawn style flowchart, vibrant colors, minimalistic icons showing process flow from START to END with decision points, branches, and clear directional arrows",
"is_process_flow": True
}
}
# PPT templates definition (English names)
PPT_TEMPLATES = {
"Business Proposal": {
"description": "For investment pitches and business proposals",
"core_slides": [
{"title": "Contents", "style": "Flowchart", "prompt_hint": "Presentation structure"},
{"title": "Problem Definition", "style": "Colorful Mind Map", "prompt_hint": "Current market problems"},
{"title": "Current Analysis", "style": "Elegant SWOT Quadrant", "prompt_hint": "Strengths, Weaknesses, Opportunities, Threats"},
{"title": "Solution", "style": "Industrial Design", "prompt_hint": "Product/Service concept"},
{"title": "Process", "style": "Business Workflow", "prompt_hint": "Implementation steps"},
{"title": "Timeline", "style": "Timeline Ribbon", "prompt_hint": "Key milestones"}
],
"optional_slides": [
{"title": "Market Size", "style": "3D Bubble Chart", "prompt_hint": "Market opportunity and growth"},
{"title": "Competition Analysis", "style": "Risk Heat Map", "prompt_hint": "Competitor positioning"},
{"title": "Business Model", "style": "Value Chain", "prompt_hint": "Revenue structure"},
{"title": "Team Introduction", "style": "Colorful Mind Map", "prompt_hint": "Core team and capabilities"},
{"title": "Financial Plan", "style": "KPI Dashboard", "prompt_hint": "Expected revenue and P&L"},
{"title": "Risk Management", "style": "Risk Heat Map", "prompt_hint": "Key risks and mitigation"},
{"title": "Partnership", "style": "Value Chain", "prompt_hint": "Strategic alliances"},
{"title": "Technology Stack", "style": "Industrial Design", "prompt_hint": "Core technology architecture"},
{"title": "Customer Cases", "style": "Industrial Design", "prompt_hint": "Success stories"},
{"title": "Growth Strategy", "style": "Timeline Ribbon", "prompt_hint": "Expansion plan"},
{"title": "Investment Use", "style": "Pyramid/Funnel", "prompt_hint": "Fund allocation plan"},
{"title": "Exit Strategy", "style": "Timeline Ribbon", "prompt_hint": "Exit plan"}
]
},
"Product Launch": {
"description": "For new product launches and service introductions",
"core_slides": [
{"title": "Product Concept", "style": "Industrial Design", "prompt_hint": "Product design"},
{"title": "User Needs", "style": "Colorful Mind Map", "prompt_hint": "Customer pain points"},
{"title": "Features", "style": "Mobile App Mockup", "prompt_hint": "UI/UX screens"},
{"title": "How It Works", "style": "Flowchart", "prompt_hint": "Function flow"},
{"title": "Market Position", "style": "3D Bubble Chart", "prompt_hint": "Competitor comparison"},
{"title": "Launch Schedule", "style": "Timeline Ribbon", "prompt_hint": "Launch roadmap"}
],
"optional_slides": [
{"title": "Target Customers", "style": "Colorful Mind Map", "prompt_hint": "Key customer segments"},
{"title": "Pricing Strategy", "style": "Pyramid/Funnel", "prompt_hint": "Pricing approach"},
{"title": "Technical Advantage", "style": "Industrial Design", "prompt_hint": "Core technology"},
{"title": "Use Scenarios", "style": "Mobile App Mockup", "prompt_hint": "Use cases"},
{"title": "Customer Reviews", "style": "KPI Dashboard", "prompt_hint": "User feedback"},
{"title": "Sales Channels", "style": "Value Chain", "prompt_hint": "Distribution strategy"},
{"title": "Marketing Strategy", "style": "Timeline Ribbon", "prompt_hint": "Promotion plan"},
{"title": "Performance Comparison", "style": "3D Bubble Chart", "prompt_hint": "Benchmarks"}
]
},
"Project Report": {
"description": "For progress and performance reports",
"core_slides": [
{"title": "Project Overview", "style": "Business Workflow", "prompt_hint": "Overall process"},
{"title": "Progress Status", "style": "Gantt Chart", "prompt_hint": "Work schedule"},
{"title": "Risk Management", "style": "Risk Heat Map", "prompt_hint": "Risk factors"},
{"title": "Performance Metrics", "style": "KPI Dashboard", "prompt_hint": "Achievement results"},
{"title": "Future Plans", "style": "Timeline Ribbon", "prompt_hint": "Next steps"}
],
"optional_slides": [
{"title": "Budget Status", "style": "Pyramid/Funnel", "prompt_hint": "Budget execution"},
{"title": "Team Performance", "style": "3D Bubble Chart", "prompt_hint": "Team contribution"},
{"title": "Issue Management", "style": "Risk Heat Map", "prompt_hint": "Key issues"},
{"title": "Improvements", "style": "Colorful Mind Map", "prompt_hint": "Process improvements"},
{"title": "Lessons Learned", "style": "Colorful Mind Map", "prompt_hint": "Key learnings"}
]
},
"Strategy Planning": {
"description": "For long-term strategy and vision development",
"core_slides": [
{"title": "Vision", "style": "3D Style (Pixar-like)", "prompt_hint": "Future vision"},
{"title": "Environmental Analysis", "style": "Elegant SWOT Quadrant", "prompt_hint": "Internal/External environment"},
{"title": "Strategy Framework", "style": "Colorful Mind Map", "prompt_hint": "Strategy structure"},
{"title": "Value Chain", "style": "Value Chain", "prompt_hint": "Business model"},
{"title": "Implementation Roadmap", "style": "Timeline Ribbon", "prompt_hint": "Phased plan"},
{"title": "Target Metrics", "style": "KPI Dashboard", "prompt_hint": "KPI targets"}
],
"optional_slides": [
{"title": "Market Outlook", "style": "3D Bubble Chart", "prompt_hint": "Future market"},
{"title": "Innovation Direction", "style": "Industrial Design", "prompt_hint": "Innovation strategy"},
{"title": "Organizational Change", "style": "Value Chain", "prompt_hint": "Org restructuring"},
{"title": "Digital Transformation", "style": "Industrial Design", "prompt_hint": "DX strategy"},
{"title": "Sustainability", "style": "Timeline Ribbon", "prompt_hint": "ESG strategy"}
]
},
"Custom": {
"description": "Build your own presentation",
"core_slides": [],
"optional_slides": []
}
}
# Korean translations for slide titles
SLIDE_TITLE_TRANSLATIONS = {
"Contents": "๋ชฉ์ฐจ",
"Problem Definition": "๋ฌธ์ ์ ์",
"Current Analysis": "ํํฉ ๋ถ์",
"Solution": "์๋ฃจ์
",
"Process": "ํ๋ก์ธ์ค",
"Timeline": "์ผ์ ",
"Market Size": "์์ฅ ๊ท๋ชจ",
"Competition Analysis": "๊ฒฝ์ ๋ถ์",
"Business Model": "๋น์ฆ๋์ค ๋ชจ๋ธ",
"Team Introduction": "ํ ์๊ฐ",
"Financial Plan": "์ฌ๋ฌด ๊ณํ",
"Risk Management": "์ํ ๊ด๋ฆฌ",
"Partnership": "ํํธ๋์ญ",
"Technology Stack": "๊ธฐ์ ์คํ",
"Customer Cases": "๊ณ ๊ฐ ์ฌ๋ก",
"Growth Strategy": "์ฑ์ฅ ์ ๋ต",
"Investment Use": "ํฌ์ ํ์ฉ",
"Exit Strategy": "Exit ์ ๋ต",
"Product Concept": "์ ํ ์ปจ์
",
"User Needs": "์ฌ์ฉ์ ๋์ฆ",
"Features": "๊ธฐ๋ฅ ์๊ฐ",
"How It Works": "์๋ ์๋ฆฌ",
"Market Position": "์์ฅ ํฌ์ง์
",
"Launch Schedule": "์ถ์ ์ผ์ ",
"Target Customers": "ํ๊ฒ ๊ณ ๊ฐ",
"Pricing Strategy": "๊ฐ๊ฒฉ ์ ์ฑ
",
"Technical Advantage": "๊ธฐ์ ์ฐ์",
"Use Scenarios": "์ฌ์ฉ ์๋๋ฆฌ์ค",
"Customer Reviews": "๊ณ ๊ฐ ํ๊ธฐ",
"Sales Channels": "ํ๋งค ์ฑ๋",
"Marketing Strategy": "๋ง์ผํ
์ ๋ต",
"Performance Comparison": "์ฑ๋ฅ ๋น๊ต",
"Project Overview": "ํ๋ก์ ํธ ๊ฐ์",
"Progress Status": "์งํ ํํฉ",
"Performance Metrics": "์ฑ๊ณผ ์งํ",
"Future Plans": "ํฅํ ๊ณํ",
"Budget Status": "์์ฐ ํํฉ",
"Team Performance": "ํ ์ฑ๊ณผ",
"Issue Management": "์ด์ ๊ด๋ฆฌ",
"Improvements": "๊ฐ์ ์ฌํญ",
"Lessons Learned": "๊ตํ",
"Vision": "๋น์ ",
"Environmental Analysis": "ํ๊ฒฝ ๋ถ์",
"Strategy Framework": "์ ๋ต ์ฒด๊ณ",
"Value Chain": "๊ฐ์น ์ฌ์ฌ",
"Implementation Roadmap": "์คํ ๋ก๋๋งต",
"Target Metrics": "๋ชฉํ ์งํ",
"Market Outlook": "์์ฅ ์ ๋ง",
"Innovation Direction": "ํ์ ๋ฐฉํฅ",
"Organizational Change": "์กฐ์ง ๋ณํ",
"Digital Transformation": "๋์งํธ ์ ํ",
"Sustainability": "์ง์๊ฐ๋ฅ์ฑ"
} |