Wajahat698 commited on
Commit
70a7076
·
verified ·
1 Parent(s): 9bd776a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -2161,8 +2161,6 @@ def handle_prompt(prompt):
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.
@@ -2184,7 +2182,7 @@ def handle_prompt(prompt):
2184
 
2185
 
2186
  # Check if user request includes blog, article, or newsletter
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: "
 
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.
 
2182
 
2183
 
2184
  # Check if user request includes blog, article, or newsletter
2185
+ if any(keyword in prompt.lower() for keyword in ["blog", "write","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: "