Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2272,8 +2272,8 @@ def handle_prompt(prompt):
|
|
| 2272 |
combined_text = full_response
|
| 2273 |
with response_placeholder:
|
| 2274 |
with st.chat_message("assistant"):
|
| 2275 |
-
|
| 2276 |
-
|
| 2277 |
#st.write(combined_text,unsafe_allow_html=True)
|
| 2278 |
st.session_state.chat_history.append({"role": "assistant", "content": combined_text})
|
| 2279 |
copy_to_clipboard(combined_text)
|
|
|
|
| 2272 |
combined_text = full_response
|
| 2273 |
with response_placeholder:
|
| 2274 |
with st.chat_message("assistant"):
|
| 2275 |
+
st.markdown(f"<pre style='white-space:pre-wrap;word-wrap:break-word;'>{combined_text}</pre>", unsafe_allow_html=True)
|
| 2276 |
+
|
| 2277 |
#st.write(combined_text,unsafe_allow_html=True)
|
| 2278 |
st.session_state.chat_history.append({"role": "assistant", "content": combined_text})
|
| 2279 |
copy_to_clipboard(combined_text)
|