Spaces:
Sleeping
Sleeping
Fix 0 answes addition
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ def question_interface(question_state, answer):
|
|
18 |
question_state["value"] += 1
|
19 |
current_question_index = question_state["value"]
|
20 |
|
21 |
-
|
|
|
22 |
|
23 |
# Check if all questions have been answered
|
24 |
if current_question_index == len(test):
|
|
|
18 |
question_state["value"] += 1
|
19 |
current_question_index = question_state["value"]
|
20 |
|
21 |
+
if (current_question_index != 0):
|
22 |
+
question_state["responses"].append(answer)
|
23 |
|
24 |
# Check if all questions have been answered
|
25 |
if current_question_index == len(test):
|