mou3az commited on
Commit
a6f43af
1 Parent(s): e577e73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -62,8 +62,7 @@ def generate_quiz_page():
62
  if request.content_type == 'application/json':
63
  return jsonify(response)
64
 
65
- response_text = response.get('text', '') if isinstance(response, dict) else ''
66
- return render_template('quiz.html', textWithAnswers=response_text)
67
 
68
  return render_template('index.html')
69
 
 
62
  if request.content_type == 'application/json':
63
  return jsonify(response)
64
 
65
+ return render_template('quiz.html', textWithAnswers=jsonify(response))
 
66
 
67
  return render_template('index.html')
68