theodotus commited on
Commit
dc1d24c
·
1 Parent(s): df6d385

Added answers accumulation

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -18,6 +18,8 @@ def question_interface(question_state, answer):
18
  question_state["value"] += 1
19
  current_question_index = question_state["value"]
20
 
 
 
21
  # Check if all questions have been answered
22
  if current_question_index == len(test):
23
  # Show all responses
 
18
  question_state["value"] += 1
19
  current_question_index = question_state["value"]
20
 
21
+ question_state["responses"].append(answer)
22
+
23
  # Check if all questions have been answered
24
  if current_question_index == len(test):
25
  # Show all responses