Thiresh commited on
Commit
614bd8c
·
verified ·
1 Parent(s): 02219a0

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -788,7 +788,7 @@ class NutritionBot:
788
  return response['output']
789
 
790
 
791
- #=====================User Interface using Streamlit ===========================#
792
  def nutrition_disorder_streamlit():
793
  """
794
  A Streamlit-based UI for the Nutrition Disorder Specialist Agent.
@@ -819,7 +819,7 @@ def nutrition_disorder_streamlit():
819
  # Trigger rerun outside the form if login was successful
820
  if st.session_state.get("login_submitted", False):
821
  st.session_state.pop("login_submitted")
822
- st.experimental_rerun()
823
  else:
824
  # Display chat history
825
  for message in st.session_state.chat_history:
@@ -840,7 +840,7 @@ def nutrition_disorder_streamlit():
840
  with st.chat_message("assistant"):
841
  st.write(goodbye_msg)
842
  st.session_state.user_id = None
843
- st.experimental_rerun()
844
  return
845
 
846
  # Add user message to chat history
 
788
  return response['output']
789
 
790
 
791
+ #=====================User Interface using streamlit ===========================#
792
  def nutrition_disorder_streamlit():
793
  """
794
  A Streamlit-based UI for the Nutrition Disorder Specialist Agent.
 
819
  # Trigger rerun outside the form if login was successful
820
  if st.session_state.get("login_submitted", False):
821
  st.session_state.pop("login_submitted")
822
+ st.rerun()
823
  else:
824
  # Display chat history
825
  for message in st.session_state.chat_history:
 
840
  with st.chat_message("assistant"):
841
  st.write(goodbye_msg)
842
  st.session_state.user_id = None
843
+ st.rerun()
844
  return
845
 
846
  # Add user message to chat history