Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2236,49 +2236,57 @@ def handle_prompt(prompt):
|
|
| 2236 |
# Check if user request includes blog, article, or newsletter
|
| 2237 |
if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter ", "website introduction"]):
|
| 2238 |
appended_instructions = (
|
| 2239 |
-
"""
|
| 2240 |
-
|
| 2241 |
-
|
| 2242 |
-
|
| 2243 |
-
|
| 2244 |
-
|
| 2245 |
-
|
| 2246 |
-
|
| 2247 |
-
|
| 2248 |
-
|
| 2249 |
-
|
| 2250 |
-
|
| 2251 |
-
|
| 2252 |
-
|
| 2253 |
-
|
| 2254 |
-
|
| 2255 |
-
|
| 2256 |
-
|
| 2257 |
-
|
| 2258 |
-
|
| 2259 |
-
|
| 2260 |
-
|
| 2261 |
-
|
| 2262 |
-
|
| 2263 |
-
|
| 2264 |
-
|
| 2265 |
-
|
| 2266 |
-
|
| 2267 |
-
|
| 2268 |
-
|
| 2269 |
-
|
| 2270 |
-
|
| 2271 |
-
|
| 2272 |
-
|
| 2273 |
-
|
| 2274 |
-
|
| 2275 |
-
|
| 2276 |
-
|
| 2277 |
-
|
| 2278 |
-
|
| 2279 |
-
|
| 2280 |
-
|
| 2281 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2282 |
"""
|
| 2283 |
)
|
| 2284 |
|
|
|
|
| 2236 |
# Check if user request includes blog, article, or newsletter
|
| 2237 |
if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter ", "website introduction"]):
|
| 2238 |
appended_instructions = (
|
| 2239 |
+
"""
|
| 2240 |
+
Create compelling copy that flows naturally, using these essential guidelines:
|
| 2241 |
+
|
| 2242 |
+
---
|
| 2243 |
+
**Format-Specific Voice (CRITICAL)**
|
| 2244 |
+
- **Newsletters**: Always use "you" or "your" throughout—never "they," "them," or "residents."
|
| 2245 |
+
- **Blogs/Reports**: Use "we" to reflect an organizational voice.
|
| 2246 |
+
- **Website Copy**: Balance "we" and "you" to create a two-way dialogue.
|
| 2247 |
+
|
| 2248 |
+
---
|
| 2249 |
+
**Flow & Structure**
|
| 2250 |
+
- Begin each section by referencing or linking it to the previous point.
|
| 2251 |
+
- End each section by bridging to the next topic, ensuring a seamless transition.
|
| 2252 |
+
- Example flow:
|
| 2253 |
+
- Previous point → New insight → Connection to next topic
|
| 2254 |
+
|
| 2255 |
+
---
|
| 2256 |
+
**Headlines & Subheads**
|
| 2257 |
+
- Format:
|
| 2258 |
+
- Main Headline: Highlight the problem or promise (e.g., "Transform Your Living Space")
|
| 2259 |
+
- Subhead: Provide supporting detail (e.g., "Simple tips to make your apartment more comfortable")
|
| 2260 |
+
- **Never use -ing words** in headlines. (Use "Transform" or "Expand" instead of "Transforming" or "Expanding.")
|
| 2261 |
+
|
| 2262 |
+
---
|
| 2263 |
+
**TrustBuilder Integration**
|
| 2264 |
+
- Weave TrustBuilders naturally into the narrative.
|
| 2265 |
+
- Example: Instead of saying "We have 5-star ratings," write "You’ll enjoy the same five-star experience that [specific number] of our users treasure."
|
| 2266 |
+
|
| 2267 |
+
---
|
| 2268 |
+
**Crucial Rules**
|
| 2269 |
+
1. Keep the **audience perspective** consistent (newsletters → "you," blogs → "we," etc.).
|
| 2270 |
+
2. Every paragraph must logically connect to the ones before and after it, ensuring a **unified narrative** without disjointed sections.
|
| 2271 |
+
3. Use **active, engaging language** without AI or corporate clichés.
|
| 2272 |
+
4. Write naturally, maintaining clarity and authenticity.
|
| 2273 |
+
|
| 2274 |
+
---
|
| 2275 |
+
**Ending with TrustBuilders & Techniques**
|
| 2276 |
+
- After the main content, provide:
|
| 2277 |
+
- **List of TrustBuilders Used** (no source links in the main body, only here).
|
| 2278 |
+
- **Heuristics and Creative Techniques** in a footnote-style heading:
|
| 2279 |
+
- Heuristics: Mention names only (e.g., social proof, authority, commitment).
|
| 2280 |
+
- Creative Techniques: List only relevant marketing techniques (e.g., storytelling, vivid imagery).
|
| 2281 |
+
|
| 2282 |
+
---
|
| 2283 |
+
**MOST IMPORTANT RULE**
|
| 2284 |
+
- In every paragraph, strengthen connections between sections to ensure smoother flow.
|
| 2285 |
+
- The entire piece **must read like a single, cohesive story**, without disjointed paragraphs or independent blocks.
|
| 2286 |
+
- Each section must logically flow into the next, preserving consistency and relevance throughout.
|
| 2287 |
+
- This cohesive structure engages readers effectively, captures their attention, and conveys the intended message with clarity and impact.
|
| 2288 |
+
- *Use creative headlines* for each paragraph, summarizing the content in an active tone (no “-ing” endings like “Driving,” “Empowering,” etc.).
|
| 2289 |
+
|
| 2290 |
"""
|
| 2291 |
)
|
| 2292 |
|