Zekun Wu commited on
Commit
6832bca
1 Parent(s): 1b72bc4
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -203,7 +203,7 @@ def main_app():
203
  for criterion, description in criteria.items():
204
  ratings[criterion] = st.slider(f"{criterion}: {description}", 0, 10, 5,key=f"coach {criterion}")
205
 
206
- feedback = st.text_input("Provide additional feedback on the response:")
207
 
208
  if st.button('Submit Report Feedback'):
209
  store_feedback(str(generate_prompt_from_profile(profile, version=st.session_state['version'])), st.session_state['analysis'], feedback, str(ratings), "wu981526092/feedback_report")
@@ -358,7 +358,7 @@ def sidebar_components():
358
  ratings[criterion] = st.sidebar.slider(f"{criterion}: {description}", 0, 10, 5,key=f"report {criterion}")
359
 
360
  # Ask for feedback
361
- feedback = st.sidebar.text_input("Provide additional feedback on the response:")
362
 
363
  if st.sidebar.button('Submit Coach Feedback'):
364
  store_feedback(user_input, response, feedback, str(ratings), "wu981526092/feedback_coach")
 
203
  for criterion, description in criteria.items():
204
  ratings[criterion] = st.slider(f"{criterion}: {description}", 0, 10, 5,key=f"coach {criterion}")
205
 
206
+ feedback = st.text_input("Provide additional feedback on the response:",key=f"coach feedback")
207
 
208
  if st.button('Submit Report Feedback'):
209
  store_feedback(str(generate_prompt_from_profile(profile, version=st.session_state['version'])), st.session_state['analysis'], feedback, str(ratings), "wu981526092/feedback_report")
 
358
  ratings[criterion] = st.sidebar.slider(f"{criterion}: {description}", 0, 10, 5,key=f"report {criterion}")
359
 
360
  # Ask for feedback
361
+ feedback = st.sidebar.text_input("Provide additional feedback on the response:",key=f"report feedback")
362
 
363
  if st.sidebar.button('Submit Coach Feedback'):
364
  store_feedback(user_input, response, feedback, str(ratings), "wu981526092/feedback_coach")