Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,8 +109,6 @@ if not st.session_state.greetings:
|
|
| 109 |
# Add assistant response to chat history
|
| 110 |
st.session_state.messages.append({"role": "assistant", "content": intro})
|
| 111 |
st.session_state.greetings = True
|
| 112 |
-
|
| 113 |
-
# Chat input
|
| 114 |
|
| 115 |
# Example prompts
|
| 116 |
example_prompts = [
|
|
@@ -214,3 +212,5 @@ if prompt := (st.chat_input("Ask me anything about your sales data") or button_p
|
|
| 214 |
st.session_state.messages.append({"role": "assistant", "content": err_msg})
|
| 215 |
with st.chat_message("assistant"):
|
| 216 |
st.markdown(err_msg)
|
|
|
|
|
|
|
|
|
| 109 |
# Add assistant response to chat history
|
| 110 |
st.session_state.messages.append({"role": "assistant", "content": intro})
|
| 111 |
st.session_state.greetings = True
|
|
|
|
|
|
|
| 112 |
|
| 113 |
# Example prompts
|
| 114 |
example_prompts = [
|
|
|
|
| 212 |
st.session_state.messages.append({"role": "assistant", "content": err_msg})
|
| 213 |
with st.chat_message("assistant"):
|
| 214 |
st.markdown(err_msg)
|
| 215 |
+
|
| 216 |
+
st.rerun()
|