eagle0504 commited on
Commit
ccd7a75
·
verified ·
1 Parent(s): 4cb5293

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -0
src/streamlit_app.py CHANGED
@@ -119,6 +119,8 @@ with st.sidebar:
119
  # Add clear history button
120
  if st.button("Clear History"):
121
  st.session_state.messages = []
 
 
122
 
123
  # Accept user input
124
  if prompt := st.chat_input("Enter a question based on a selected task."):
 
119
  # Add clear history button
120
  if st.button("Clear History"):
121
  st.session_state.messages = []
122
+ st.rerun()
123
+
124
 
125
  # Accept user input
126
  if prompt := st.chat_input("Enter a question based on a selected task."):