tolerate-error3
This commit is contained in:
parent
4d9454719b
commit
28a10283cb
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user