From 5658992a88bb7077d6bce22a78e955b77b22ab56 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 15:34:03 +0300 Subject: [PATCH] no-process-score --- handlers/messages_routing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/messages_routing.py b/handlers/messages_routing.py index afd3e4f..39e7473 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -40,6 +40,7 @@ async def messages_routing(msg, state): reply_to=mid, text=f"{latest_toxic.get(cid, 0)}%" ) + return toxic_score = detector(text) toxic_perc = math.floor(toxic_score*100) latest_toxic[cid] = toxic_perc