log-rechecked2

This commit is contained in:
Untone 2024-09-29 08:36:26 +03:00
parent 9db8f50663
commit aa684102d9

View File

@ -114,8 +114,8 @@ async def messages_routing(msg, state):
toxic_score = detector(segmented_text) toxic_score = detector(segmented_text)
toxic_perc = math.floor(toxic_score * 100) toxic_perc = math.floor(toxic_score * 100)
logger.info('re-check this one...')
nospaces_text = text.replace(' ', '') nospaces_text = text.replace(' ', '')
logger.info(f're-check this one: {nospaces_text}')
nospaces_text_score = detector(nospaces_text) nospaces_text_score = detector(nospaces_text)
nospaces_text_perc = math.floor(toxic_score * 100) nospaces_text_perc = math.floor(toxic_score * 100)
logger.info(f'no spaces text toxic: {nospaces_text_perc}%') logger.info(f'no spaces text toxic: {nospaces_text_perc}%')