mou3az commited on
Commit
ab2cbe2
1 Parent(s): 74bbd61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -62,10 +62,10 @@ def generate_quiz_page():
62
  if request.content_type == 'application/json':
63
  return jsonify(response)
64
 
65
- return render_template('quiz.html', **response)
 
66
 
67
- # Default GET request handling
68
  return render_template('index.html')
69
 
70
  if __name__ == "__main__":
71
- app.run(debug=True)
 
62
  if request.content_type == 'application/json':
63
  return jsonify(response)
64
 
65
+ # Pass the entire response to the HTML template
66
+ return render_template('quiz.html', textWithAnswers=response)
67
 
 
68
  return render_template('index.html')
69
 
70
  if __name__ == "__main__":
71
+ app.run(debug=True)