Spaces:
Sleeping
Sleeping
Added answers accumulation
Browse files
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
|