Wajahat698 commited on
Commit
e2dcd75
·
verified ·
1 Parent(s): 9bf1fa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -2161,6 +2161,8 @@ def handle_prompt(prompt):
2161
  display_typing_indicator()
2162
  cleaned_text = ""
2163
  base_instructions = """
 
 
2164
  *Be overly specific with details such as $dollar amounts, awards, people's names, and program titles*
2165
  1. **Focus on Knowledge Base Data**:
2166
  - When asked using uploaded documents, files or using knowledgebase files, prioritize information fetch everything asked from there.
@@ -2185,27 +2187,25 @@ def handle_prompt(prompt):
2185
  if any(keyword in prompt.lower() for keyword in ["blog", "article","annual report","report", "newsletter","website introduction"]):
2186
  appended_instructions = (
2187
  "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. "
2188
- "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: "
2189
- "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. "
2190
- "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. "
2191
- "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."
2192
- "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."
2193
- "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. "
2194
- "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. "
2195
- "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. "
2196
- "dont give source link in content"
2197
- "Dont mention trust bucket names literally"
2198
- "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by source links "
2199
- "2. ##Heuristics and Creative Techniques :"
2200
- " -List them in a footnote-style small heading."
2201
- " Use the following structure:"
2202
- " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2203
- " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2204
- "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."
2205
- "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."
2206
-
2207
-
2208
- )
2209
  else:
2210
  appended_instructions = ""
2211
  final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
 
2161
  display_typing_indicator()
2162
  cleaned_text = ""
2163
  base_instructions = """
2164
+ Always Follow previous chat copywriting style if have any chat.
2165
+
2166
  *Be overly specific with details such as $dollar amounts, awards, people's names, and program titles*
2167
  1. **Focus on Knowledge Base Data**:
2168
  - When asked using uploaded documents, files or using knowledgebase files, prioritize information fetch everything asked from there.
 
2187
  if any(keyword in prompt.lower() for keyword in ["blog", "article","annual report","report", "newsletter","website introduction"]):
2188
  appended_instructions = (
2189
  "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. "
2190
+ "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: "
2191
+ "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. "
2192
+ "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. "
2193
+ "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."
2194
+ "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."
2195
+ "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. "
2196
+ "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. "
2197
+ "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. "
2198
+ "dont give source link in content"
2199
+ "Dont mention trust bucket names literally"
2200
+ "1. ##List of TrustBuilders Used: Provide relevant trustbuilders used with *embedded source links always*"
2201
+ " 2. ##Heuristics and Creative Techniques :"
2202
+ " -List them in a footnote-style small heading."
2203
+ " Use the following structure:"
2204
+ " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2205
+ " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2206
+ "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."
2207
+ "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."
2208
+ )
 
 
2209
  else:
2210
  appended_instructions = ""
2211
  final_prompt = f"{prompt} {base_instructions} {appended_instructions}"