From 28a10283cb036bf774245a1bbb38458a904ff1a4 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 14:44:56 +0300 Subject: [PATCH] tolerate-error3 --- handlers/messages_routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/messages_routing.py b/handlers/messages_routing.py index b678d55..52aee22 100644 --- a/handlers/messages_routing.py +++ b/handlers/messages_routing.py @@ -34,8 +34,8 @@ async def messages_routing(msg, state): mid = msg.get("message_id") toxic_score = detector(text) logger.info(f'\ntext: {text}\ntoxic: {math.floor(toxic_score*100)}%') - if toxic_score > 0.71: - if toxic_score > 0.85: + if toxic_score > 0.81: + if toxic_score > 0.95: await redis.set(f"removed:{uid}:{cid}:{mid}", text) await telegram_api( "deleteMessage",