ocr-stav
This commit is contained in:
@@ -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(' ', ''):
|
||||
|
Reference in New Issue
Block a user