no-process-score
This commit is contained in:
@@ -40,6 +40,7 @@ async def messages_routing(msg, state):
|
|||||||
reply_to=mid,
|
reply_to=mid,
|
||||||
text=f"{latest_toxic.get(cid, 0)}%"
|
text=f"{latest_toxic.get(cid, 0)}%"
|
||||||
)
|
)
|
||||||
|
return
|
||||||
toxic_score = detector(text)
|
toxic_score = detector(text)
|
||||||
toxic_perc = math.floor(toxic_score*100)
|
toxic_perc = math.floor(toxic_score*100)
|
||||||
latest_toxic[cid] = toxic_perc
|
latest_toxic[cid] = toxic_perc
|
||||||
|
Reference in New Issue
Block a user