Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -0
src/streamlit_app.py
CHANGED
@@ -72,6 +72,8 @@ show_typing_indicator()
|
|
72 |
if prompt := st.chat_input("Describe your symptoms or ask a medical question..."):
|
73 |
# Set conversation lock to prioritize conversation over report generation
|
74 |
st.session_state.conversation_lock = True
|
|
|
|
|
75 |
|
76 |
# Add user message to history using the database-backed function
|
77 |
add_message_to_history({"role": "user", "content": prompt})
|
|
|
72 |
if prompt := st.chat_input("Describe your symptoms or ask a medical question..."):
|
73 |
# Set conversation lock to prioritize conversation over report generation
|
74 |
st.session_state.conversation_lock = True
|
75 |
+
# Explicitly hide report form when a new chat is initiated
|
76 |
+
st.session_state.show_report_form = False
|
77 |
|
78 |
# Add user message to history using the database-backed function
|
79 |
add_message_to_history({"role": "user", "content": prompt})
|