toxic-debug11
This commit is contained in:
parent
f000a1c68c
commit
36a3eb7704
|
@ -45,7 +45,7 @@ async def messages_routing(msg, state):
|
|||
if one_score:
|
||||
logger.debug(one_score)
|
||||
emoji = '😳' if toxic_score > 90 else '😟' if toxic_score > 80 else '😏' if toxic_score > 60 else '🙂' if toxic_score > 20 else '😇'
|
||||
text = f"{one_score}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}"
|
||||
text = f"{int(one_score)}% токсичности\nСредняя токсичность сообщений: {toxic_score}% {emoji}"
|
||||
await telegram_api(
|
||||
"sendMessage",
|
||||
chat_id=cid,
|
||||
|
|
Loading…
Reference in New Issue
Block a user