Update app.py
Browse files
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 |
|