Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,9 +70,9 @@ if st.session_state["chat_history"]:
|
|
70 |
if user_input:
|
71 |
bot_response = chat(user_input, st.session_state["chat_history"], system_prompt)
|
72 |
st.session_state["chat_history"].append((user_input, bot_response))
|
73 |
-
st.experimental_rerun()
|
74 |
|
75 |
# Clear chat history button
|
76 |
if st.button("Clear Chat"):
|
77 |
st.session_state["chat_history"] = []
|
78 |
-
st.experimental_rerun()
|
|
|
70 |
if user_input:
|
71 |
bot_response = chat(user_input, st.session_state["chat_history"], system_prompt)
|
72 |
st.session_state["chat_history"].append((user_input, bot_response))
|
73 |
+
#st.experimental_rerun()
|
74 |
|
75 |
# Clear chat history button
|
76 |
if st.button("Clear Chat"):
|
77 |
st.session_state["chat_history"] = []
|
78 |
+
#st.experimental_rerun()
|