Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2028,7 +2028,7 @@ def handle_prompt(prompt):
|
|
| 2028 |
" Use the following structure:"
|
| 2029 |
" -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
|
| 2030 |
" -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
|
| 2031 |
-
"The final output must not include AI jargons,and strictly Give well sales activelanguage title and 3-4 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."
|
| 2032 |
)
|
| 2033 |
else:
|
| 2034 |
appended_instructions = ""
|
|
@@ -2044,9 +2044,10 @@ def handle_prompt(prompt):
|
|
| 2044 |
cleaned_text = clean_text(full_response)
|
| 2045 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2046 |
combined_text = f"{cleaned_text}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
|
|
|
|
|
|
| 2047 |
with response_placeholder:
|
| 2048 |
with st.chat_message("assistant"):
|
| 2049 |
-
formatted_text = clean_and_format_markdown(combined_text)
|
| 2050 |
st.markdown(formatted_text, unsafe_allow_html=False)
|
| 2051 |
|
| 2052 |
|
|
|
|
| 2028 |
" Use the following structure:"
|
| 2029 |
" -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
|
| 2030 |
" -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
|
| 2031 |
+
"The final output must not include AI jargons,and strictly Give well sales activelanguage title and 3-4 sub-headlines. Strictly interconnected sections having Flowing narrative, smooth transitions and audience engagement at its peak to create an impactful and memorable experience.Avoid mentioning trustbucket names."
|
| 2032 |
)
|
| 2033 |
else:
|
| 2034 |
appended_instructions = ""
|
|
|
|
| 2044 |
cleaned_text = clean_text(full_response)
|
| 2045 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2046 |
combined_text = f"{cleaned_text}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2047 |
+
formatted_text = clean_and_format_markdown(combined_text)
|
| 2048 |
+
|
| 2049 |
with response_placeholder:
|
| 2050 |
with st.chat_message("assistant"):
|
|
|
|
| 2051 |
st.markdown(formatted_text, unsafe_allow_html=False)
|
| 2052 |
|
| 2053 |
|