Spaces:
Sleeping
Sleeping
Added final output
Browse files
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 |
-
|
|
|
|
|
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)
|