Wajahat698 commited on
Commit
037da9d
·
verified ·
1 Parent(s): 30dbfe5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -16
app.py CHANGED
@@ -2260,22 +2260,25 @@ def handle_prompt(prompt):
2260
 
2261
  # Check if user request includes blog, article, or newsletter
2262
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2263
- appended_instructions = (
2264
- "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. "
2265
- "Avoid AI jargon, vague phrases, or formal language. Do not mention trustbucket names in the headings or content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2266
- "1. **Deep Interconnected Structure**: Ensure every section builds upon the previous one, with logical transitions that reinforce the overall theme. Each idea must flow naturally into the next, creating a narrative that feels cohesive and unified rather than fragmented. "
2267
- "2. **Seamless Integration of TrustBuilders®**: Incorporate TrustBuilders® naturally into the text. Avoid listing them explicitly or presenting them as isolated facts. Instead, weave them into the narrative to support key points and enhance the overall message. "
2268
- "3. **Relatable, Human Tone**: Write in a conversational and approachable tone that engages the reader. Use active voice consistently and avoid repetitive phrasing or overly technical language. Ensure the tone is audience-focused, addressing their needs and challenges directly. "
2269
- "4. **Audience-Centric Engagement**: Tailor the content to resonate with the reader’s goals and experiences. Use relatable examples and vivid imagery to create emotional connections. Ensure actionable insights and relevance in every paragraph to make the audience feel seen and valued. "
2270
- "5. **Enhanced Storytelling**: Use storytelling techniques to maintain momentum and engagement throughout the content. Begin with a compelling hook, use transitions to maintain a cohesive flow, and conclude with a strong call-to-action that inspires action. "
2271
- "6. **Purpose-Driven Narrative**: Ensure every paragraph serves the overall purpose of the content—whether to inform, persuade, or inspire. Reinforce the key message consistently while avoiding unnecessary repetition. "
2272
- "7. **Polished, Professional Presentation**: The final output should be refined, professional, and suitable for publication. Pay attention to formatting, style, and design to ensure clarity and impact. "
2273
- "8. **Creative Headline and Subheadings**: Provide engaging headlines that summarize each paragraph and avoid terms like 'drive' or 'empower.' Headlines should align with the narrative and maintain a professional tone. "
2274
- "9. **No Source Links in Content**: Do not include source links in the main body. Instead, provide a separate 'List of TrustBuilders Used' section at the end with accurate source links. "
2275
- "10. **Heuristics and Creative Techniques**: "
2276
- " - List heuristics in a footnote-style small heading (e.g., social proof, authority, commitment). "
2277
- " - Mention creative techniques (e.g., storytelling, vivid imagery, call-to-action) without additional explanation. "
2278
- "MOST IMPORTANT RULE: Ensure every paragraph is interconnected, creating a seamless narrative that reads like a unified story rather than independent sections. Strengthen transitions between paragraphs to maintain thematic consistency and flow, holding the reader's attention throughout."
 
 
 
2279
  )
2280
  else:
2281
  appended_instructions = ""
 
2260
 
2261
  # Check if user request includes blog, article, or newsletter
2262
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2263
+ appended_instructions = (
2264
+ "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. "
2265
+ "Do not use AI jargon, vague phrases, or formal language.Donot mention trustbucket names in the headings and content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2266
+ "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. "
2267
+ "3. **Seamless Integration of TrustBuilders®**: Naturally incorporate TrustBuilders® into the narrative without isolating or explicitly listing them in the main body. Instead, weave them fluidly into sentences to build credibility and trust while maintaining the content’s readability and engagement. "
2268
+ "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."
2269
+ "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."
2270
+ "6. **Enhanced Audience Engagement**: Use storytelling techniques and mix the trustbuilders into a 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. "
2271
+ "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. "
2272
+ "8. **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. "
2273
+ "dont give source link in content"
2274
+ "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
2275
+ " 2. ##Heuristics and Creative Techniques :"
2276
+ " -List them in a footnote-style small heading."
2277
+ " Use the following structure:"
2278
+ " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2279
+ " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2280
+ "The final output must not include AI jargons. *With every paragraph give a creative headline that summarises 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."
2281
+ "MOST IMPORTANT RULE. IN EVERY PARAGRAPH Strengthen the connections between sections to ensure smoother flow and SHOULD BE DEEPLY INTERCONNECTED WITH EACH OTHER TO CREATE A SEAMLESS FLOW, MAKING THE CONTENT READ LIKE A SINGLE CONTENT RATHER THAN DISJOINTED PARAGRAPHS OR INDEPENDENT BLOG SECTIONS. EACH SECTION MUST LOGICALLY TRANSITION INTO THE NEXT, ENSURING THAT THE TOPIC REMAINS CONSISTENT AND RELEVANT THROUGHOUT. BY MAINTAINING A COHESIVE STRUCTURE, THE ARTICLE WILL ENGAGE READERS MORE EFFECTIVELY, HOLDING THEIR ATTENTION AND CONVEYING THE INTENDED MESSAGE WITH CLARITY AND IMPACT."
2282
  )
2283
  else:
2284
  appended_instructions = ""