mou3az commited on
Commit
c5d80ea
·
verified ·
1 Parent(s): c42ba06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -51,9 +51,6 @@ def generate_quiz_page():
51
  context = request.form.get("context")
52
  response = generate_quiz(context)
53
 
54
- if "error" in response:
55
- response = generate_quiz(context)
56
-
57
  if request.headers.get('Content-Type') == 'application/json':
58
  return jsonify(response)
59
 
 
51
  context = request.form.get("context")
52
  response = generate_quiz(context)
53
 
 
 
 
54
  if request.headers.get('Content-Type') == 'application/json':
55
  return jsonify(response)
56