Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -779,7 +779,7 @@ def nutrition_disorder_streamlit():
|
|
779 |
st.session_state.login_submitted = True # Set flag to trigger rerun
|
780 |
if st.session_state.get("login_submitted", False):
|
781 |
st.session_state.pop("login_submitted")
|
782 |
-
st.
|
783 |
else:
|
784 |
# Display chat history
|
785 |
for message in st.session_state.chat_history:
|
@@ -806,7 +806,7 @@ def nutrition_disorder_streamlit():
|
|
806 |
with st.chat_message("assistant"):
|
807 |
st.write(goodbye_msg)
|
808 |
st.session_state.user_id = None
|
809 |
-
st.
|
810 |
return
|
811 |
|
812 |
# Add the user query to the chat history
|
|
|
779 |
st.session_state.login_submitted = True # Set flag to trigger rerun
|
780 |
if st.session_state.get("login_submitted", False):
|
781 |
st.session_state.pop("login_submitted")
|
782 |
+
st.rerun() # Replace st.experimental_rerun with st.rerun
|
783 |
else:
|
784 |
# Display chat history
|
785 |
for message in st.session_state.chat_history:
|
|
|
806 |
with st.chat_message("assistant"):
|
807 |
st.write(goodbye_msg)
|
808 |
st.session_state.user_id = None
|
809 |
+
st.rerun() # Replace st.experimental_rerun with st.rerun
|
810 |
return
|
811 |
|
812 |
# Add the user query to the chat history
|