toxic-debug13
This commit is contained in:
parent
23cd45b6d4
commit
b371bba60e
|
@ -56,7 +56,7 @@ async def messages_routing(msg, state):
|
|||
message_id=mid
|
||||
)
|
||||
else:
|
||||
toxic_score = detector(text)
|
||||
toxic_score = detector(text.lower())
|
||||
toxic_perc = math.floor(toxic_score*100)
|
||||
await redis.set(f"toxic:{cid}", mid)
|
||||
await redis.set(f"toxic:{cid}:{uid}:{mid}", toxic_perc, ex=60*60*24*3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user