shivanis14
commited on
Commit
•
62e84c6
1
Parent(s):
8e0088b
Update app.py
Browse files
app.py
CHANGED
@@ -480,7 +480,7 @@ if st.sidebar.button("Submit Prompt"):
|
|
480 |
st.session_state.product_shared = False
|
481 |
st.session_state.welcome_msg = "What is the next product you would like me to analyze today?"
|
482 |
st.session_state.messages = [] # Clear chat history when prompt changes
|
483 |
-
st.
|
484 |
else:
|
485 |
st.sidebar.error("Please enter a valid system prompt.")
|
486 |
|
|
|
480 |
st.session_state.product_shared = False
|
481 |
st.session_state.welcome_msg = "What is the next product you would like me to analyze today?"
|
482 |
st.session_state.messages = [] # Clear chat history when prompt changes
|
483 |
+
st.rerun() # Rerun the app to apply the changes
|
484 |
else:
|
485 |
st.sidebar.error("Please enter a valid system prompt.")
|
486 |
|