vsj0702 commited on
Commit
0029087
·
verified ·
1 Parent(s): 340a4b8

fixing bug

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -133,7 +133,7 @@ def render_chatbot(code, input, output, error):
133
  st.markdown(f'<div class="chat-message user-message">{escape(q)}</div>', unsafe_allow_html=True)
134
 
135
  def format_response(txt):
136
- parts = txt.split('')
137
  result = ''
138
  for j, part in enumerate(parts):
139
  if j % 2 == 1:
 
133
  st.markdown(f'<div class="chat-message user-message">{escape(q)}</div>', unsafe_allow_html=True)
134
 
135
  def format_response(txt):
136
+ parts = txt.split('```')
137
  result = ''
138
  for j, part in enumerate(parts):
139
  if j % 2 == 1: