Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1142,6 +1142,7 @@ Before submitting any content, ensure it includes:
|
|
| 1142 |
- Give headlines conversational headings to structure content . Do not include source links within the content.
|
| 1143 |
- Write from the perspective of being part of the organization, using "we".
|
| 1144 |
- Maintain an active, engaging, and direct tone.
|
|
|
|
| 1145 |
|
| 1146 |
#### Social Media Posts
|
| 1147 |
- **Introduction Line**: "Here is a draft of your social media post. Feel free to suggest further refinements."
|
|
@@ -1996,7 +1997,7 @@ def handle_prompt(prompt):
|
|
| 1996 |
" Use the following structure:"
|
| 1997 |
" -Heuristics: examples (e.g., social proof, authority, commitment)."
|
| 1998 |
" -Creative Techniques: examples (list only relevant marketing techniques without additional details)."
|
| 1999 |
-
"The final output must
|
| 2000 |
)
|
| 2001 |
else:
|
| 2002 |
appended_instructions = ""
|
|
@@ -2013,6 +2014,8 @@ def handle_prompt(prompt):
|
|
| 2013 |
|
| 2014 |
cleaned_text = clean_text(full_response)
|
| 2015 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
|
|
|
|
|
|
| 2016 |
combined_text = f"{cleaned_text}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2017 |
with response_placeholder:
|
| 2018 |
with st.chat_message("assistant"):
|
|
|
|
| 1142 |
- Give headlines conversational headings to structure content . Do not include source links within the content.
|
| 1143 |
- Write from the perspective of being part of the organization, using "we".
|
| 1144 |
- Maintain an active, engaging, and direct tone.
|
| 1145 |
+
**Donot give source link in content**
|
| 1146 |
|
| 1147 |
#### Social Media Posts
|
| 1148 |
- **Introduction Line**: "Here is a draft of your social media post. Feel free to suggest further refinements."
|
|
|
|
| 1997 |
" Use the following structure:"
|
| 1998 |
" -Heuristics: examples (e.g., social proof, authority, commitment)."
|
| 1999 |
" -Creative Techniques: examples (list only relevant marketing techniques without additional details)."
|
| 2000 |
+
"The final output must not include AI jargon or marketing buzzwords (donot provide source in content) as instruicted and Give well title and sub-headlines. Strictly interconnected sections having Flowing narrative and audience engagement at its peak to create an impactful and memorable experience.Avoid mentioning trustbucket names."
|
| 2001 |
)
|
| 2002 |
else:
|
| 2003 |
appended_instructions = ""
|
|
|
|
| 2014 |
|
| 2015 |
cleaned_text = clean_text(full_response)
|
| 2016 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2017 |
+
formatted_text = format_links(cleaned_text)
|
| 2018 |
+
|
| 2019 |
combined_text = f"{cleaned_text}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2020 |
with response_placeholder:
|
| 2021 |
with st.chat_message("assistant"):
|