neuralleap commited on
Commit
31c0c97
·
verified ·
1 Parent(s): b9bcccd

Update code

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -188,7 +188,7 @@ with st.container():
188
  full_response = get_ai_response(prompt, messages[:-1])
189
  st.markdown(full_response)
190
  messages.append({"role": "assistant", "content": full_response})
191
- st.experimental_rerun()
192
 
193
  # JavaScript for Auto-Scroll
194
  scroll_script = """
 
188
  full_response = get_ai_response(prompt, messages[:-1])
189
  st.markdown(full_response)
190
  messages.append({"role": "assistant", "content": full_response})
191
+ st.rerun() # <-- FIXED: Used st.rerun() instead of st.experimental_rerun()
192
 
193
  # JavaScript for Auto-Scroll
194
  scroll_script = """