Spaces:
Running
Running
Update app.py
Browse files
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.
|
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:
|