add assync
Browse files
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
|