Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2272,16 +2272,16 @@ def handle_prompt(prompt):
|
|
| 2272 |
# Combine the response text with Trust Tip and Suggestion
|
| 2273 |
combined_text = f"{full_response}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2274 |
|
| 2275 |
-
escaped_output = html.escape(combined_text)
|
| 2276 |
|
| 2277 |
|
| 2278 |
with response_placeholder:
|
| 2279 |
with st.chat_message("assistant"):
|
| 2280 |
|
| 2281 |
-
st.
|
|
|
|
| 2282 |
|
| 2283 |
#st.write(combined_text,unsafe_allow_html=True)
|
| 2284 |
-
st.session_state.chat_history.append({"role": "assistant", "content":
|
| 2285 |
copy_to_clipboard(combined_text)
|
| 2286 |
|
| 2287 |
|
|
|
|
| 2272 |
# Combine the response text with Trust Tip and Suggestion
|
| 2273 |
combined_text = f"{full_response}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2274 |
|
|
|
|
| 2275 |
|
| 2276 |
|
| 2277 |
with response_placeholder:
|
| 2278 |
with st.chat_message("assistant"):
|
| 2279 |
|
| 2280 |
+
st.code(combined_text, language="markdown")
|
| 2281 |
+
|
| 2282 |
|
| 2283 |
#st.write(combined_text,unsafe_allow_html=True)
|
| 2284 |
+
st.session_state.chat_history.append({"role": "assistant", "content": combined_text})
|
| 2285 |
copy_to_clipboard(combined_text)
|
| 2286 |
|
| 2287 |
|