theodotus commited on
Commit
ebe4f0b
·
1 Parent(s): 2fc8171

Added final output

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -25,7 +25,9 @@ def question_interface(question_state, answer):
25
  if current_question_index == len(test):
26
  # Show all responses
27
  answer_ids = test.convert_to_answer_ids(question_state["responses"])
28
- return response_text
 
 
29
 
30
  # Display the current question
31
  question = test.get_question(current_question_index)
 
25
  if current_question_index == len(test):
26
  # Show all responses
27
  answer_ids = test.convert_to_answer_ids(question_state["responses"])
28
+ best_name = test.select_best(answer_ids)
29
+ radio = gr.Radio.update(choices = [], value = None)
30
+ return None, None, radio, best_name, None
31
 
32
  # Display the current question
33
  question = test.get_question(current_question_index)