mou3az commited on
Commit
f5a2807
·
verified ·
1 Parent(s): 6b16d48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def generate_quiz_page():
52
  response = generate_quiz(context)
53
 
54
  if request.headers.get('Content-Type') == 'application/json':
55
- formatted_quiz = response.replace("\n", "<br>").strip()
56
  return jsonify({"quiz": formatted_quiz})
57
 
58
  quiz_html = f"""
 
52
  response = generate_quiz(context)
53
 
54
  if request.headers.get('Content-Type') == 'application/json':
55
+ formatted_quiz = response.replace("\n\n", "<br>").strip()
56
  return jsonify({"quiz": formatted_quiz})
57
 
58
  quiz_html = f"""