Wajahat698 commited on
Commit
4eaff1e
·
verified ·
1 Parent(s): 6adfa76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -26
app.py CHANGED
@@ -1239,10 +1239,11 @@ Before submitting any content, ensure it includes:
1239
 
1240
  #### Report/Article/Write-up/ Blog
1241
  - **Introduction**: "Here is a draft of your [Annual Report/Article/Write-up]. Feel free to suggest further refinements."
1242
- - **Content**: **Donot give source link in content**
1243
- - Give headlines conversational headings to structure content . Do not include source links within the content.
1244
- - Write from the perspective of being part of the organization, using "we".
1245
- - Maintain an active, engaging, and direct tone. Dont use flowery words
 
1246
 
1247
  #### Social Media Posts
1248
  - **Introduction Line**: "Here is a draft of your social media post. Feel free to suggest further refinements."
@@ -2103,28 +2104,27 @@ def handle_prompt(prompt):
2103
 
2104
  # Check if user request includes blog, article, or newsletter
2105
  if any(keyword in prompt.lower() for keyword in ["blog", "article","annual report","report", "newsletter"]):
2106
- appended_instructions = (
2107
- "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. "
2108
- "Do not use AI jargon, vague phrases, or overly formal language. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2109
- "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. "
2110
- "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. "
2111
- "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."
2112
- "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."
2113
- "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. "
2114
- "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. "
2115
- "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. "
2116
- "dont give source link in content"
2117
- " **Sub-Headings(After Summary) **:"
2118
- "1. **List of TrustBuilders Used**: Provide trust-building elements followed with embedded correct source links."
2119
- " 2. **Heuristics and Creative Techniques**:"
2120
- " -List them in a footnote-style small heading."
2121
- " Use the following structure:"
2122
- " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2123
- " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2124
- "The final output must not include AI jargons,and strictly Give well sales active language title and 3-4 bold sub-headlines. Avoid mentioning trustbucket names."
2125
- "# MOST IMPORTANT RULES: EVERY PARAGRAPH SHOULD have sub-headings and BE INTERCONNECTED 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."
2126
-
2127
- )
2128
  else:
2129
  appended_instructions = ""
2130
  final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
 
1239
 
1240
  #### Report/Article/Write-up/ Blog
1241
  - **Introduction**: "Here is a draft of your [Annual Report/Article/Write-up]. Feel free to suggest further refinements."
1242
+ - **Headlines **: WRITE ONE CREATIVE ACTIVE LANGUAGE HEADLINE THAT SUMMARISES THE POINTS.Headline should be like this in activae language eg.we empower instead of empowering.**without mentioning prohibited terms**.
1243
+ - **Content**:
1244
+ -**Donot give any source link in contents**
1245
+ - Write from the perspective of being part of the organization, using "we".
1246
+ - Maintain an active, engaging, and direct tone. Dont use flowery words
1247
 
1248
  #### Social Media Posts
1249
  - **Introduction Line**: "Here is a draft of your social media post. Feel free to suggest further refinements."
 
2104
 
2105
  # Check if user request includes blog, article, or newsletter
2106
  if any(keyword in prompt.lower() for keyword in ["blog", "article","annual report","report", "newsletter"]):
2107
+ appended_instructions = (
2108
+ "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. "
2109
+ "Do not use AI jargon, vague phrases, or formal language. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2110
+ "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. "
2111
+ "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. "
2112
+ "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."
2113
+ "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."
2114
+ "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. "
2115
+ "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. "
2116
+ "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. "
2117
+ "dont give source link in content"
2118
+ "Dont mention trust bucket names literally"
2119
+ "1. ##List of TrustBuilders Used: Provide relevant trustbuilders used with embedded source links always"
2120
+ " 2. ##Heuristics and Creative Techniques :"
2121
+ " -List them in a footnote-style small heading."
2122
+ " Use the following structure:"
2123
+ " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2124
+ " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2125
+ "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: We Empower or Similar Phrases*. Avoid mentioning trustbucket names."
2126
+ "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."
2127
+ )
 
2128
  else:
2129
  appended_instructions = ""
2130
  final_prompt = f"{prompt} {base_instructions} {appended_instructions}"