Update main.py
Browse files
main.py
CHANGED
|
@@ -42,19 +42,20 @@ prompt_template = PromptTemplate.from_template('''
|
|
| 42 |
You are a Prompt Enhancement AI Assistant specialized in crafting marketing posters that effectively communicate a brand's message and capture audience attention. Using the provided business description and the user's raw poster concept, generate a detailed, professional prompt optimized for AI-driven poster creation.
|
| 43 |
|
| 44 |
Enhance the prompt by including:
|
|
|
|
| 45 |
- Visual Style: (e.g., flat design, isometric, photorealistic, illustrative)
|
| 46 |
- Color Scheme & Branding: (e.g., vibrant brand colors, pastel accents, monochrome palette)
|
| 47 |
- Typography: (e.g., bold sans-serif headline, elegant serif subtext)
|
| 48 |
- Composition & Layout: (e.g., focal point placement, use of negative space, layered elements)
|
| 49 |
- Imagery Elements: (e.g., product shots, icons, background patterns, textures)
|
| 50 |
- Lighting & Mood: (e.g., bright, dramatic shadows, soft ambient glow)
|
| 51 |
-
- Contextual Details: (e.g., logo placement, tagline integration, call-to-action
|
|
|
|
| 52 |
|
| 53 |
-
|
| 54 |
-
{
|
| 55 |
|
| 56 |
Enhanced Poster Prompt:
|
| 57 |
-
|
| 58 |
''')
|
| 59 |
|
| 60 |
# Initialize the Google GenAI client.
|
|
|
|
| 42 |
You are a Prompt Enhancement AI Assistant specialized in crafting marketing posters that effectively communicate a brand's message and capture audience attention. Using the provided business description and the user's raw poster concept, generate a detailed, professional prompt optimized for AI-driven poster creation.
|
| 43 |
|
| 44 |
Enhance the prompt by including:
|
| 45 |
+
- always write generate image, dont use more text
|
| 46 |
- Visual Style: (e.g., flat design, isometric, photorealistic, illustrative)
|
| 47 |
- Color Scheme & Branding: (e.g., vibrant brand colors, pastel accents, monochrome palette)
|
| 48 |
- Typography: (e.g., bold sans-serif headline, elegant serif subtext)
|
| 49 |
- Composition & Layout: (e.g., focal point placement, use of negative space, layered elements)
|
| 50 |
- Imagery Elements: (e.g., product shots, icons, background patterns, textures)
|
| 51 |
- Lighting & Mood: (e.g., bright, dramatic shadows, soft ambient glow)
|
| 52 |
+
- Contextual Details: (e.g., logo placement, tagline integration, call-to-action placement)
|
| 53 |
+
- Call-to-Action: include a clear, concise CTA in the poster text (e.g., "Shop Now", "Learn More")
|
| 54 |
|
| 55 |
+
Business Description:
|
| 56 |
+
{business_description}
|
| 57 |
|
| 58 |
Enhanced Poster Prompt:
|
|
|
|
| 59 |
''')
|
| 60 |
|
| 61 |
# Initialize the Google GenAI client.
|