shivanis14
commited on
Commit
•
93f9e41
1
Parent(s):
07e2f6f
Update app.py
Browse files
app.py
CHANGED
@@ -480,6 +480,16 @@ else:
|
|
480 |
# Update session state when the system prompt changes
|
481 |
if system_prompt != st.session_state.system_prompt:
|
482 |
st.session_state.system_prompt = system_prompt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
|
484 |
# Chat history in a scrollable container
|
485 |
with st.container():
|
|
|
480 |
# Update session state when the system prompt changes
|
481 |
if system_prompt != st.session_state.system_prompt:
|
482 |
st.session_state.system_prompt = system_prompt
|
483 |
+
|
484 |
+
# Reset conversation state
|
485 |
+
st.session_state.product_selected = False
|
486 |
+
st.session_state.analyze_more = True
|
487 |
+
st.session_state.welcome_shown = False
|
488 |
+
st.session_state.yes_no_choice = None
|
489 |
+
st.session_state.product_shared = False
|
490 |
+
st.session_state.welcome_msg = "What is the next product would you like me to analyze today?"
|
491 |
+
st.session_state.messages = [] # Clear chat history when prompt changes
|
492 |
+
st.rerun()
|
493 |
|
494 |
# Chat history in a scrollable container
|
495 |
with st.container():
|