Update app.py
Browse files
app.py
CHANGED
@@ -52,8 +52,8 @@ def generate_quiz_page():
|
|
52 |
response = generate_quiz(context)
|
53 |
|
54 |
if request.headers.get('Content-Type') == 'application/json':
|
55 |
-
|
56 |
-
|
57 |
|
58 |
quiz_html = f"""
|
59 |
<!DOCTYPE html>
|
|
|
52 |
response = generate_quiz(context)
|
53 |
|
54 |
if request.headers.get('Content-Type') == 'application/json':
|
55 |
+
return jsonify({"quiz": response.split("\n\n")})
|
56 |
+
|
57 |
|
58 |
quiz_html = f"""
|
59 |
<!DOCTYPE html>
|