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