Update app.py
Browse files
app.py
CHANGED
@@ -62,10 +62,10 @@ def generate_quiz_page():
|
|
62 |
if request.content_type == 'application/json':
|
63 |
return jsonify(response)
|
64 |
|
65 |
-
|
|
|
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)
|