Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2229,15 +2229,15 @@ def handle_prompt(prompt):
|
|
| 2229 |
})
|
| 2230 |
full_response = output["output"]
|
| 2231 |
|
| 2232 |
-
cleaned_text = clean_text(full_response)
|
| 2233 |
-
formatted_text = clean_and_format_markdown(cleaned_text)
|
| 2234 |
|
| 2235 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2236 |
combined_text = f"{formatted_text}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2237 |
|
| 2238 |
with response_placeholder:
|
| 2239 |
with st.chat_message("assistant"):
|
| 2240 |
-
st.write(combined_text)
|
| 2241 |
st.session_state.chat_history.append({"role": "assistant", "content": combined_text})
|
| 2242 |
copy_to_clipboard(combined_text)
|
| 2243 |
|
|
|
|
| 2229 |
})
|
| 2230 |
full_response = output["output"]
|
| 2231 |
|
| 2232 |
+
#cleaned_text = clean_text(full_response)
|
| 2233 |
+
#formatted_text = clean_and_format_markdown(cleaned_text)
|
| 2234 |
|
| 2235 |
trust_tip, suggestion = get_trust_tip_and_suggestion()
|
| 2236 |
combined_text = f"{formatted_text}\n\n---\n\n**Trust Tip**: {trust_tip}\n\n**Suggestion**: {suggestion}"
|
| 2237 |
|
| 2238 |
with response_placeholder:
|
| 2239 |
with st.chat_message("assistant"):
|
| 2240 |
+
st.write(combined_text,unsafe_allow_html=True)
|
| 2241 |
st.session_state.chat_history.append({"role": "assistant", "content": combined_text})
|
| 2242 |
copy_to_clipboard(combined_text)
|
| 2243 |
|