Zekun Wu commited on
Commit
073e8e0
1 Parent(s): 4911494
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -160,7 +160,6 @@ def main_app():
160
  st.session_state['version'] = st.selectbox("Select Prompt Version", ["TestTakersSummary", "ManagersSummary"])
161
  # Generate and display prompt
162
 
163
- prompt = None
164
 
165
  if st.button(f'Analyze Profile ({st.session_state["version"]})'):
166
  # with st.spinner('Generating completion...'):
@@ -193,7 +192,7 @@ def main_app():
193
  rating = st.slider("Rate the response:", 0, 10, 5)
194
 
195
  if st.button('Submit Feedback'):
196
- store_feedback(str(prompt), st.session_state['analysis'], feedback, rating, "wu981526092/feedback_report")
197
 
198
 
199
 
 
160
  st.session_state['version'] = st.selectbox("Select Prompt Version", ["TestTakersSummary", "ManagersSummary"])
161
  # Generate and display prompt
162
 
 
163
 
164
  if st.button(f'Analyze Profile ({st.session_state["version"]})'):
165
  # with st.spinner('Generating completion...'):
 
192
  rating = st.slider("Rate the response:", 0, 10, 5)
193
 
194
  if st.button('Submit Feedback'):
195
+ store_feedback(str(generate_prompt_from_profile(profile, version=st.session_state['version'])), st.session_state['analysis'], feedback, rating, "wu981526092/feedback_report")
196
 
197
 
198