CarolineM5 commited on
Commit
83b5039
·
verified ·
1 Parent(s): e49d1f1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -114,9 +114,9 @@ if st.session_state.page == "evaluation":
114
  # If all pairs have been evaluated, display a message and save the results
115
  if st.session_state.current_index+1 > NUM_PAIRS:
116
 
117
-
118
  confidence = st.select_slider(
119
- "How confident were you in your selections?",
120
  options=[
121
  "Not confident at all",
122
  "Slightly confident",
@@ -132,7 +132,7 @@ if st.session_state.page == "evaluation":
132
  #Calculating result
133
  correct_guess = np.array(st.session_state.results)
134
  nb_correct = np.sum(correct_guess)
135
-
136
  st.success(f"Number of correct answers: {nb_correct}/{NUM_PAIRS}")
137
  st.success("Thank you for completing the evaluation!", icon=":material/park:")
138
 
@@ -148,9 +148,9 @@ if st.session_state.page == "evaluation":
148
  row = [
149
  st.session_state.user_name,
150
  confidence,
 
151
  ",".join(map(str, st.session_state.list_pair_ID)),
152
  ",".join(map(str, correct_guess)),
153
- ",".join(map(str, nb_correct))
154
  ]
155
  sh.append_row(row)
156
 
 
114
  # If all pairs have been evaluated, display a message and save the results
115
  if st.session_state.current_index+1 > NUM_PAIRS:
116
 
117
+ st.markdown("<h4>How confident were you in your answers?</h4>", unsafe_allow_html=True)
118
  confidence = st.select_slider(
119
+ " ",
120
  options=[
121
  "Not confident at all",
122
  "Slightly confident",
 
132
  #Calculating result
133
  correct_guess = np.array(st.session_state.results)
134
  nb_correct = np.sum(correct_guess)
135
+
136
  st.success(f"Number of correct answers: {nb_correct}/{NUM_PAIRS}")
137
  st.success("Thank you for completing the evaluation!", icon=":material/park:")
138
 
 
148
  row = [
149
  st.session_state.user_name,
150
  confidence,
151
+ nb_correct,
152
  ",".join(map(str, st.session_state.list_pair_ID)),
153
  ",".join(map(str, correct_guess)),
 
154
  ]
155
  sh.append_row(row)
156