This commit is contained in:
2024-09-29 13:24:49 +03:00
parent 335e65eaaa
commit a54d7cac39
2 changed files with 6 additions and 6 deletions

View File

@@ -112,7 +112,6 @@ async def messages_routing(msg, state):
text += '\n'
normalized_text = normalize(text)
logger.info(f'noramalized: {normalized_text}')
toxic_score = detector(normalized_text)
toxic_perc = math.floor(toxic_score * 100)
if toxic_score < 0.9 and text != text.replace(' ', ''):