From ce0d92d8aa0c648cd1b91894aa3837ee8408c1c6 Mon Sep 17 00:00:00 2001 From: "majiahui@haimaqingfan.com" Date: Fri, 3 Nov 2023 18:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E7=89=88=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_drop_rewrite_request.py | 2 +- redis_check_uuid_mistral.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_drop_rewrite_request.py b/flask_drop_rewrite_request.py index f5c6eb2..5b8c2d1 100644 --- a/flask_drop_rewrite_request.py +++ b/flask_drop_rewrite_request.py @@ -44,7 +44,6 @@ pantten_biaoti_2 = '^[0-9.]+\s{0,}?[\u4e00-\u9fa5a-zA-Z]+' pantten_biaoti_3 = '^[((][1-9一二三四五六七八九ⅠⅡⅢⅣⅤⅥⅦⅧⅨ][)_)][、.]{0,}?\s{0,}?[\u4e00-\u9fa5a-zA-Z]+' - class log: def __init__(self): pass @@ -284,6 +283,7 @@ def post_sentence_ulit(sentence, text_info): if_change = text_info[3] if if_change == True: + sentence = sentence.strip() if "改写后:" in sentence: sentence_lable_index = sentence.index("改写后:") sentence = sentence[sentence_lable_index + 4:] diff --git a/redis_check_uuid_mistral.py b/redis_check_uuid_mistral.py index babee0a..01c9015 100644 --- a/redis_check_uuid_mistral.py +++ b/redis_check_uuid_mistral.py @@ -89,4 +89,4 @@ def handle_query(): if __name__ == "__main__": - app.run(debug=False, host='0.0.0.0', port=14005) + app.run(debug=False, host='0.0.0.0', port=14003)