Spaces:
Sleeping
Sleeping
Answers as separate variable
Browse files
app.py
CHANGED
@@ -28,7 +28,8 @@ def question_interface(question_state, answer):
|
|
28 |
question = test.get_question(current_question_index)
|
29 |
|
30 |
# Create an input component for the answer
|
31 |
-
|
|
|
32 |
|
33 |
return question_state, question, radio, "Click 'Answer' to submit"
|
34 |
|
|
|
28 |
question = test.get_question(current_question_index)
|
29 |
|
30 |
# Create an input component for the answer
|
31 |
+
answers = test.get_answers(current_question_index)
|
32 |
+
radio = gr.Radio.update(choices = answers)
|
33 |
|
34 |
return question_state, question, radio, "Click 'Answer' to submit"
|
35 |
|