token
Browse files- views/infer.py +0 -8
views/infer.py
CHANGED
|
@@ -9,14 +9,6 @@ from utils.util_func import *
|
|
| 9 |
def infer():
|
| 10 |
print("Infer function entered", flush=True)
|
| 11 |
token = request.args.get('token')
|
| 12 |
-
if token is None:
|
| 13 |
-
print("Token is None", flush=True)
|
| 14 |
-
flash("Please go to the home page to check your essay.")
|
| 15 |
-
return redirect(url_for('infer.index'))
|
| 16 |
-
if token != session.get('inference_token'):
|
| 17 |
-
print("Token is not valid", flush=True)
|
| 18 |
-
flash("Invalid or expired access token. Please submit the form again.")
|
| 19 |
-
return redirect(url_for('infer.index'))
|
| 20 |
scores = session.get('scores', [])
|
| 21 |
topic = session.get('topic', "")
|
| 22 |
essay = session.get('essay', "")
|
|
|
|
| 9 |
def infer():
|
| 10 |
print("Infer function entered", flush=True)
|
| 11 |
token = request.args.get('token')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
scores = session.get('scores', [])
|
| 13 |
topic = session.get('topic', "")
|
| 14 |
essay = session.get('essay', "")
|