eagle0504 commited on
Commit
198523d
Β·
verified Β·
1 Parent(s): a4c8bd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ top_p = st.sidebar.slider("πŸ“Š Top P (Probability Sampling)", 0.0, 1.0, 0.98)
21
  # Button to clear chat history
22
  if st.sidebar.button("πŸ—‘οΈ Clear Chat History"):
23
  st.session_state.messages = [] # Reset conversation history
24
- st.experimental_rerun() # Refresh the app
25
 
26
  # Initialize chat history
27
  if "messages" not in st.session_state:
 
21
  # Button to clear chat history
22
  if st.sidebar.button("πŸ—‘οΈ Clear Chat History"):
23
  st.session_state.messages = [] # Reset conversation history
24
+ st.rerun() # Refresh the app
25
 
26
  # Initialize chat history
27
  if "messages" not in st.session_state: