Spaces:
Running
Running
bugfix
Browse files
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 |
|