ogegadavis254 commited on
Commit
6307698
1 Parent(s): c68c0b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -11,6 +11,7 @@ def reset_conversation():
11
  Resets Conversation
12
  '''
13
  st.session_state.messages = []
 
14
  return None
15
 
16
  def analyze_diagnosis(messages, model_link):
@@ -105,9 +106,10 @@ def interact_with_together_api(messages, model_link):
105
  st.error(f"Error communicating with the API: {e}")
106
  return None
107
 
108
- # Initialize chat history
109
  if "messages" not in st.session_state:
110
  st.session_state.messages = []
 
111
 
112
  # Create sidebar with model selection dropdown and reset button
113
  selected_model = st.sidebar.selectbox("Select Model", list(model_links.keys()))
 
11
  Resets Conversation
12
  '''
13
  st.session_state.messages = []
14
+ st.session_state.ask_intervention = False
15
  return None
16
 
17
  def analyze_diagnosis(messages, model_link):
 
106
  st.error(f"Error communicating with the API: {e}")
107
  return None
108
 
109
+ # Initialize chat history and session state attributes
110
  if "messages" not in st.session_state:
111
  st.session_state.messages = []
112
+ st.session_state.ask_intervention = False
113
 
114
  # Create sidebar with model selection dropdown and reset button
115
  selected_model = st.sidebar.selectbox("Select Model", list(model_links.keys()))