Sharal commited on
Commit
34a2b68
·
verified ·
1 Parent(s): 63f79ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -186,11 +186,9 @@ def main():
186
  st.session_state['chat_history'] = chat_history
187
  st.session_state['sources'] = sources
188
 
189
- # Clear the text input after submission
190
- st.session_state.message = ""
191
- st.experimental_rerun() # Force a rerun to update the UI
192
 
193
  if __name__ == "__main__":
194
  main()
195
-
196
-
 
186
  st.session_state['chat_history'] = chat_history
187
  st.session_state['sources'] = sources
188
 
189
+ # Clear the input by setting the message to an empty string
190
+ # and rerun the app to refresh the display
191
+ st.experimental_rerun()
192
 
193
  if __name__ == "__main__":
194
  main()