theodotus commited on
Commit
1b53686
·
1 Parent(s): c42a8bf

Use answers id

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def question_interface(question_state, answer):
24
  # Check if all questions have been answered
25
  if current_question_index == len(test):
26
  # Show all responses
27
- response_text = "\n".join(f"Question: {q}\nAnswer: {a}\n" for q, a in zip(questions, question_state["responses"]))
28
  return response_text
29
 
30
  # Display the current question
 
24
  # Check if all questions have been answered
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