theodotus commited on
Commit
95eec11
1 Parent(s): b617371

Answers as separate variable

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- radio = gr.Radio.update(choices = test.get_answers(current_question_index))
 
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