Wajahat698 commited on
Commit
cbe124c
·
verified ·
1 Parent(s): 1a6ee13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -69
app.py CHANGED
@@ -2271,75 +2271,20 @@ def handle_prompt(prompt):
2271
  # Check if user request includes blog, article, or newsletter
2272
  if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter", "website introduction"]):
2273
  appended_instructions = (
2274
- "Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional copywriter with 25 years of experience. "
2275
- "Avoid AI jargon, vague phrases, or overly formal language. Do not explicitly mention trust bucket names in headings or content. Instead, use the following enhanced guidelines for a polished, publication-ready copy that scores 10/10 in quality:\n\n"
2276
-
2277
- "1. **Interconnected Structure**:\n"
2278
- "- Ensure all sections and ideas are deeply interconnected with logical transitions between paragraphs.\n"
2279
- "- Build a cohesive narrative where each paragraph leads naturally into the next.\n"
2280
- "- Use linking phrases to reinforce connections (e.g., 'Building on this success...' or 'This aligns with our broader mission...').\n"
2281
- "- Avoid isolated or disjointed sections.\n\n"
2282
-
2283
- "2. **Tailored Formatting for Blogs and Newsletters**:\n"
2284
- "- **For Blogs**: Use detailed, narrative-style paragraphs to explore topics in depth.\n"
2285
- " - Each section must have a clear heading and a creative subheading summarizing the content.\n"
2286
- "- **For Newsletters**: Focus on concise summaries with bullet points and clear headings.\n"
2287
- " - Ensure the content is visually digestible and quick to read.\n\n"
2288
-
2289
- "3. **Seamless Integration of TrustBuilders®**:\n"
2290
- "- Naturally weave TrustBuilders® into the narrative without isolating them.\n"
2291
- "- Highlight their relevance subtly to build credibility and trust while maintaining readability and engagement.\n\n"
2292
-
2293
- "4. **Relatable and Conversational Tone**:\n"
2294
- "- Engage the audience with a human, approachable tone.\n"
2295
- "- Avoid repetitive phrasing, overly technical explanations, or mechanical structures.\n"
2296
- "- Use active voice consistently for a professional yet friendly style.\n\n"
2297
-
2298
- "5. **Audience-Centric Engagement**:\n"
2299
- "- Tailor the content to resonate with the audience’s needs, challenges, and aspirations.\n"
2300
- "- Use relatable examples, vivid imagery, and direct appeals to create emotional connections.\n"
2301
- "- Highlight actionable insights and practical relevance.\n\n"
2302
-
2303
- "6. **Purpose-Driven Impact**:\n"
2304
- "- Clearly define and achieve the content's purpose—whether to inform, persuade, or inspire action.\n"
2305
- "- Ensure each paragraph contributes to the overall objective and reinforces the key message.\n\n"
2306
-
2307
- "7. **Content Elements for Newsletters**:\n"
2308
- "- Use bullet points for key highlights or statistics to improve readability.\n"
2309
- "- Summarize sections into digestible pieces that are easy to scan.\n"
2310
- "- Add clear calls-to-action (e.g., 'Join us,' 'Learn more,' 'Donate now') at the end of relevant sections.\n\n"
2311
-
2312
- "8. **Polished Presentation**:\n"
2313
- "- Refine the output to ensure it is professional, cohesive, and suitable for publication.\n"
2314
- "- Avoid ambiguity or errors.\n"
2315
- "- Structure the content to highlight key points effectively and keep the reader engaged.\n\n"
2316
-
2317
- "9. **Mandatory Sections for Blogs and Newsletters**:\n"
2318
- "1. **List of TrustBuilders Used**:\n"
2319
- " - Provide TrustBuilders used with *Source links always included*.\n"
2320
- " - Example: 'Investment in sustainable development projects - [Source](https://example.com).'\n"
2321
- "2. **Heuristics and Creative Techniques**:\n"
2322
- " - List them in a footnote-style small heading.\n"
2323
- " - Use the following structure:\n"
2324
- " - Heuristics: Mention names only (e.g., social proof, authority, commitment).\n"
2325
- " - Creative Techniques: Mention names only (list only relevant marketing techniques without additional details).\n\n"
2326
-
2327
- "10. **Flow and Consistency**:\n"
2328
- "- Strengthen connections between paragraphs to create a seamless flow.\n"
2329
- "- Ensure newsletters are concise, with key points prominently displayed.\n"
2330
- "- Blogs should maintain a deeper narrative structure with smooth transitions.\n\n"
2331
-
2332
- "11. **Creative Subheadings**:\n"
2333
- "- Each section must have a heading and subheading that captures the essence of the content below.\n"
2334
- "- Example:\n"
2335
- " - Instead of 'Empowering Communities,' use 'Transform Lives Through Sustainable Growth.'\n"
2336
- "- Avoid generic titles or -ing endings.\n\n"
2337
-
2338
- "12. **Key Reminder**:\n"
2339
- "- Ensure the final output:\n"
2340
- " - Is deeply interconnected, with transitions between sections creating a cohesive narrative.\n"
2341
- " - Maintains a balance between detail and brevity to suit both blogs and newsletters.\n"
2342
- " - Includes action-oriented subheadings and avoids disjointed or isolated content blocks.\n"
2343
  )
2344
 
2345
 
 
2271
  # Check if user request includes blog, article, or newsletter
2272
  if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter", "website introduction"]):
2273
  appended_instructions = (
2274
+ "Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional copywriter having 25 years of experience. "
2275
+ "Do not use AI jargon, vague phrases, or overly formal language. Do not mention trustbucket names in the headings and content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2276
+ "1. **Interconnected Structure**: Ensure all sections and ideas flow seamlessly with logical transitions between paragraphs. Build a cohesive narrative where every part supports the overall theme, reinforcing the message at every step. "
2277
+ "2. **Tailored Formatting for Blogs and Newsletters**: - **For Blogs**: Use detailed, narrative-style paragraphs to explore topics in depth. Each section must have a creative subheading summarizing the content. - **For Newsletters**: Focus on concise summaries with bullet points and clear headings. Ensure the content is visually digestible and quick to read, with each section presented as a self-contained summary. "
2278
+ "3. **Seamless Integration of TrustBuilders®**: Naturally incorporate TrustBuilders® into the narrative without isolating or explicitly listing them in the main body. Weave them fluidly into sentences to build credibility and trust while maintaining readability and engagement. "
2279
+ "4. **Human Tone**: Write in a relatable, conversational tone that engages the reader and feels natural. Avoid repetitive phrasing, overly technical explanations, or mechanical structures. Use active voice consistently, ensuring the tone is both approachable and professional. "
2280
+ "5. **Audience-Centric Engagement**: Tailor the content to meet the audience's needs, goals, and challenges. Create emotional connections by using relatable examples, vivid imagery, and direct appeals. Emphasize actionable insights and practical relevance to ensure the audience feels seen and understood. "
2281
+ "6. **Enhanced Audience Engagement**: Use storytelling techniques and mix the TrustBuilders® into the content. Begin with a compelling hook, maintain momentum through transitions, and conclude with a strong call-to-action that inspires the reader to act or reflect. "
2282
+ "7. **Purpose-Driven Impact**: Clearly define and achieve the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph serves the overall objective while reinforcing the key message. "
2283
+ "8. **Content Elements for Newsletters**: - Use bullet points for key highlights or statistics to improve readability. - Summarize sections into digestible pieces that are easy to scan. - Add clear calls-to-action (e.g., 'Join us,' 'Learn more,' 'Donate now') at the end of relevant sections. "
2284
+ "9. **Polished Presentation**: Ensure the final output is refined, professional, and suitable for publication. The copy should demonstrate mastery of language and content design, leaving no room for ambiguity or errors. "
2285
+ "10. **Mandatory Sections**: 1. ##List of TrustBuilders Used: Provide TrustBuilders used followed by *Source links always*. 2. ##Heuristics and Creative Techniques: - List them in a footnote-style small heading. - Use the following structure: - Heuristics: Mention names only like examples (e.g., social proof, authority, commitment). - Creative Techniques: Mention names only (list only relevant marketing techniques without additional details). "
2286
+ "The final output must not include AI jargon. *With every paragraph give a creative headline that summarizes the content. Give sub-headlines with each paragraph like example headline: Drive, empower; use similar words but no driving, empowering, etc*. Avoid mentioning trustbucket names. "
2287
+ "MOST IMPORTANT RULE: In every paragraph, strengthen the connections between sections to ensure smoother flow and ensure the content is deeply interconnected. Each section must logically transition into the next, creating a seamless flow. The content should read like a single, cohesive piece rather than disjointed paragraphs or independent sections. By maintaining a cohesive structure, the article will engage readers more effectively, holding their attention and conveying the intended message with clarity and impact."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2288
  )
2289
 
2290