Skip to content

Commit

Permalink
Adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
M1chlCZ committed Jun 14, 2023
1 parent 103b129 commit 7c0ffce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsfw/nsfw.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (l *Labels) IsNSFW() bool {
// NSFW returns true if the image is may not be safe for work.
func (l *Labels) NSFW(threshold float32) bool {
if l.Neutral > 0.3 || l.Drawing > 0.4 {
if l.Porn < 0.1 || l.Sexy < 0.1 {
if l.Porn < 0.1 && l.Sexy < 0.1 {
return false
} else {
return true
Expand Down

0 comments on commit 7c0ffce

Please sign in to comment.