ofermend commited on
Commit
0ea5146
1 Parent(s): 72b3bfc
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -165,10 +165,10 @@ def launch_bot(agent_type: AgentType):
165
  st.session_state.thinking_placeholder = st.empty()
166
  res = st.session_state.agent.chat(prompt)
167
  cleaned = re.sub(r'\[\d+\]', '', res).replace('$', '\\$')
168
- st.write(cleaned)
169
  message = {"role": "assistant", "content": cleaned, "avatar": '🤖'}
170
  st.session_state.messages.append(message)
171
  st.session_state.thinking_placeholder.empty()
 
172
 
173
  sys.stdout.flush()
174
 
 
165
  st.session_state.thinking_placeholder = st.empty()
166
  res = st.session_state.agent.chat(prompt)
167
  cleaned = re.sub(r'\[\d+\]', '', res).replace('$', '\\$')
 
168
  message = {"role": "assistant", "content": cleaned, "avatar": '🤖'}
169
  st.session_state.messages.append(message)
170
  st.session_state.thinking_placeholder.empty()
171
+ st.rerun()
172
 
173
  sys.stdout.flush()
174