.sk
This commit is contained in:
parent
0fa336978f
commit
878da549e0
|
@ -30,7 +30,6 @@ async def messages_routing(msg, state):
|
||||||
if reply_chat_id != FEEDBACK_CHAT_ID:
|
if reply_chat_id != FEEDBACK_CHAT_ID:
|
||||||
await telegram_api("sendMessage", chat_id=reply_chat_id, text=text, reply_to=reply_msg.get("message_id"))
|
await telegram_api("sendMessage", chat_id=reply_chat_id, text=text, reply_to=reply_msg.get("message_id"))
|
||||||
|
|
||||||
# TODO: implement text2toxicity with https://huggingface.co/s-nlp/russian_toxicity_classifier
|
|
||||||
elif bool(text):
|
elif bool(text):
|
||||||
mid = msg.get("message_id")
|
mid = msg.get("message_id")
|
||||||
non_toxic_score, toxic_score = detector(text)
|
non_toxic_score, toxic_score = detector(text)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user