Skip to content

Commit

Permalink
automod: switch from 'gore' and 'corpse' to 'graphic-media' (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Aug 27, 2024
2 parents 4519dc8 + 3c303db commit ce365b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automod/visual/hiveai_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ func summarizeSimpleLabels(cl []HiveAIResp_Class) []string {

for _, cls := range cl {
if cls.Class == "very_bloody" && cls.Score >= 0.90 {
labels = append(labels, "gore")
labels = append(labels, "graphic-media")
}
if cls.Class == "human_corpse" && cls.Score >= 0.90 {
labels = append(labels, "corpse")
labels = append(labels, "graphic-media")
}
if cls.Class == "hanging" && cls.Score >= 0.90 {
labels = append(labels, "corpse")
labels = append(labels, "graphic-media")
}
if cls.Class == "yes_self_harm" && cls.Score >= 0.96 {
labels = append(labels, "self-harm")
Expand Down

0 comments on commit ce365b1

Please sign in to comment.