HMPhuoc commited on
Commit
9698e15
1 Parent(s): 9d6299e

add assync

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -18,7 +18,7 @@ def returnText(text):
18
  return f'The text is {text}'
19
 
20
  @app.route("/check", methods=["POST"])
21
- def check():
22
  comment = request.json['comment']
23
- result = judge(comment)
24
  return result
 
18
  return f'The text is {text}'
19
 
20
  @app.route("/check", methods=["POST"])
21
+ async def check():
22
  comment = request.json['comment']
23
+ result = await judge(comment)
24
  return result