HMPhuoc commited on
Commit
040b9b7
1 Parent(s): 5a9d314

add checkPlus

Browse files

checkPlus use bert model

Files changed (1) hide show
  1. main.py +6 -0
main.py CHANGED
@@ -24,6 +24,12 @@ def check():
24
  result = judge(comment)
25
  return result
26
 
 
 
 
 
 
 
27
  if __name__ == '__main__':
28
 
29
  app.run(debug=False, threaded=True)
 
24
  result = judge(comment)
25
  return result
26
 
27
+ @app.route("/checkplus", methods=["POST"])
28
+ def checkPlus():
29
+ comment = request.json['comment']
30
+ result = judge(comment, True)
31
+ return result
32
+
33
  if __name__ == '__main__':
34
 
35
  app.run(debug=False, threaded=True)