SFM2001 commited on
Commit
9a14a03
·
1 Parent(s): 8268cdd
Files changed (1) hide show
  1. views/infer.py +2 -0
views/infer.py CHANGED
@@ -7,6 +7,7 @@ from inference.infer_single import *
7
  from utils.util_func import *
8
  @infer_bp.route('/infer', methods=['GET'])
9
  def infer():
 
10
  token = request.args.get('token')
11
  if token is None:
12
  flash("Please go to the home page to check your essay.")
@@ -69,6 +70,7 @@ def index():
69
  db.session.commit()
70
 
71
  return redirect(url_for('infer.infer', token=token))
 
72
  return render_template('index.html', isempty='False', username=current_user.nickname if current_user.is_authenticated else '')
73
 
74
  @infer_bp.route('/rubric_explanation')
 
7
  from utils.util_func import *
8
  @infer_bp.route('/infer', methods=['GET'])
9
  def infer():
10
+ print("Infer function entered")
11
  token = request.args.get('token')
12
  if token is None:
13
  flash("Please go to the home page to check your essay.")
 
70
  db.session.commit()
71
 
72
  return redirect(url_for('infer.infer', token=token))
73
+ print("FAILED TO INFER")
74
  return render_template('index.html', isempty='False', username=current_user.nickname if current_user.is_authenticated else '')
75
 
76
  @infer_bp.route('/rubric_explanation')