Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2261,25 +2261,21 @@ def handle_prompt(prompt):
|
|
| 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 |
-
|
| 2265 |
-
"
|
| 2266 |
-
"1. **
|
| 2267 |
-
"
|
| 2268 |
-
"
|
| 2269 |
-
"
|
| 2270 |
-
"
|
| 2271 |
-
"
|
| 2272 |
-
"
|
| 2273 |
-
"
|
| 2274 |
-
|
| 2275 |
-
|
| 2276 |
-
|
| 2277 |
-
|
| 2278 |
-
|
| 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 = ""
|
| 2285 |
final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
|
|
|
|
| 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 compelling, seamless, and publication-ready copy using *precise, professional language* that feels like the work of a seasoned copywriter with 25 years of experience. "
|
| 2265 |
+
"Avoid flowery language, vague expressions, or formal overtones. Follow these advanced guidelines to ensure high-quality output: "
|
| 2266 |
+
"1. **Logical Flow**: Maintain seamless transitions between sections, ensuring every paragraph naturally builds upon the last. Establish a unified narrative that reinforces the overall theme without fragmentation. "
|
| 2267 |
+
"2. **Integrated TrustBuilders®**: Weave TrustBuilders® naturally into the narrative to enhance credibility without isolating them. Avoid explicitly listing them in the body. Instead, incorporate them into context-rich sentences that maintain readability and engagement. "
|
| 2268 |
+
"3. **Human-Centric Tone**: Write in a relatable, conversational tone that resonates with the audience. Avoid technical jargon or overly structured phrases. Use active voice consistently to maintain a professional yet approachable tone. "
|
| 2269 |
+
"4. **Audience Engagement**: Tailor the content to meet the reader’s needs, challenges, and goals. Use relatable examples, vivid imagery, and actionable insights to establish a strong emotional connection. "
|
| 2270 |
+
"5. **Storytelling Excellence**: Start with a powerful hook, maintain momentum through logical transitions, and end with a strong call to action. Mix in TrustBuilders® within narratives to amplify impact. "
|
| 2271 |
+
"6. **Purpose Alignment**: Clearly define and achieve the content’s purpose—whether it is to inform, persuade, or inspire action. Ensure every section reinforces the core message. "
|
| 2272 |
+
"7. **Refined Presentation**: Deliver a polished, error-free, professional-quality response suitable for publication. Each paragraph should demonstrate mastery of language and design. "
|
| 2273 |
+
"8. **Headlines and Subheadings**: Include creative, engaging headlines for each section, summarizing its content. Avoid direct references to TrustBuckets in headings or the body. "
|
| 2274 |
+
"9. **Unified Structure**: Ensure deeply interconnected paragraphs to create a cohesive flow. The content must feel like a single narrative rather than fragmented sections or independent blocks. "
|
| 2275 |
+
"10. **Source Links and Creative Techniques**: "
|
| 2276 |
+
" - Provide source links for TrustBuilders® in a separate 'TrustBuilders Used' section. "
|
| 2277 |
+
" - List heuristics (e.g., social proof, authority) and creative techniques (e.g., storytelling, vivid imagery) in a footnote-style format. "
|
| 2278 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2279 |
else:
|
| 2280 |
appended_instructions = ""
|
| 2281 |
final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
|