Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2260,7 +2260,7 @@ def handle_prompt(prompt):
|
|
| 2260 |
})
|
| 2261 |
full_response = output["output"]
|
| 2262 |
|
| 2263 |
-
cleaned_text = clean_and_format_markdown(full_response)
|
| 2264 |
|
| 2265 |
# Use Markdown with a styled div to ensure proper word wrapping
|
| 2266 |
|
|
@@ -2271,11 +2271,11 @@ def handle_prompt(prompt):
|
|
| 2271 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2272 |
|
| 2273 |
# Combine the response text with Trust Tip and Suggestion
|
| 2274 |
-
combined_text = f"{
|
| 2275 |
|
| 2276 |
else:
|
| 2277 |
# If already present, just use the full response
|
| 2278 |
-
combined_text =
|
| 2279 |
with response_placeholder:
|
| 2280 |
with st.chat_message("assistant"):
|
| 2281 |
st.markdown(combined_text, unsafe_allow_html=True)
|
|
|
|
| 2260 |
})
|
| 2261 |
full_response = output["output"]
|
| 2262 |
|
| 2263 |
+
#cleaned_text = clean_and_format_markdown(full_response)
|
| 2264 |
|
| 2265 |
# Use Markdown with a styled div to ensure proper word wrapping
|
| 2266 |
|
|
|
|
| 2271 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2272 |
|
| 2273 |
# Combine the response text with Trust Tip and Suggestion
|
| 2274 |
+
combined_text = f"{full_response}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2275 |
|
| 2276 |
else:
|
| 2277 |
# If already present, just use the full response
|
| 2278 |
+
combined_text = full_response
|
| 2279 |
with response_placeholder:
|
| 2280 |
with st.chat_message("assistant"):
|
| 2281 |
st.markdown(combined_text, unsafe_allow_html=True)
|