Spaces:
Running
Running
add checkPlus
Browse filescheckPlus use bert model
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)
|