Zekun Wu commited on
Commit
d4e272e
1 Parent(s): bcb54f4
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -223,7 +223,7 @@ def main_app():
223
  if feedback_type == "Report":
224
  store_feedback(str(generate_prompt_from_profile(profile, version=st.session_state['version'])), st.session_state['analysis'], feedback, str(ratings), dataset_id)
225
  else:
226
- store_feedback(st.session_state['coach_query'], st.session_state['coach_response'], feedback, str(ratings), dataset_id)
227
 
228
 
229
  st.success("Feedback submitted successfully!")
@@ -355,7 +355,7 @@ def sidebar_components():
355
  chat_prompt_template = create_chat_prompt_template(get_profile_str(st.session_state['profile']),st.session_state['definition'])
356
  else:
357
  chat_prompt_template = create_chat_prompt_template(st.session_state['analysis'],st.session_state['definition'])
358
- st.session_state['coach_response'] = str(execute_query(index, chat_prompt_template, user_input))
359
  st.sidebar.markdown(st.session_state['coach_response'])
360
 
361
 
 
223
  if feedback_type == "Report":
224
  store_feedback(str(generate_prompt_from_profile(profile, version=st.session_state['version'])), st.session_state['analysis'], feedback, str(ratings), dataset_id)
225
  else:
226
+ store_feedback(str(st.session_state['coach_query']), str(st.session_state['coach_response']), feedback, str(ratings), dataset_id)
227
 
228
 
229
  st.success("Feedback submitted successfully!")
 
355
  chat_prompt_template = create_chat_prompt_template(get_profile_str(st.session_state['profile']),st.session_state['definition'])
356
  else:
357
  chat_prompt_template = create_chat_prompt_template(st.session_state['analysis'],st.session_state['definition'])
358
+ st.session_state['coach_response'] = execute_query(index, chat_prompt_template, user_input)
359
  st.sidebar.markdown(st.session_state['coach_response'])
360
 
361