toxic-debug8
This commit is contained in:
parent
6c1adf644c
commit
5c4c7d8a85
|
@ -43,7 +43,7 @@ async def messages_routing(msg, state):
|
|||
logger.debug('msg_toxic_key: ', msg_toxic_key)
|
||||
one_score = await redis.get(msg_toxic_key)
|
||||
msg_score = int(one_score[0])
|
||||
logger.debug('one_score: ', one_score)
|
||||
logger.debug('one_score: ', msg_score)
|
||||
emoji = '😳' if toxic_score > 90 else '😟' if toxic_score > 80 else '😏' if toxic_score > 60 else '🙂' if toxic_score > 20 else '😇'
|
||||
text = f"{msg_score}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}"
|
||||
if text:
|
||||
|
|
Loading…
Reference in New Issue
Block a user