increase porn and hentai thresholds to reduce false positives.

This commit is contained in:
fiatjaf
2024-06-18 16:14:56 -03:00
parent 6797480250
commit 822d97426e

View File

@@ -60,5 +60,5 @@ func isImageNSFW(url string) bool {
res := nsfwPredictor.Predict(nsfwPredictor.NewImage(tempPath, 3))
log.Debug().Str("url", url).Str("desc", res.Describe()).Msg("image analyzed")
return res.Porn > 0.75 || res.Hentai > 0.75
return res.Porn > 0.85 || res.Hentai > 0.85
}