Wajahat698 commited on
Commit
1bc8f52
·
verified ·
1 Parent(s): 4c6a05b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- logging.debug(repr(combined_text))
2276
- st.text(combined_text)
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)