Tweak NSFW threshold
Of course it’ll have a few false positives, but this seems to work well with the 0x0.st dataset.
This commit is contained in:
parent
c3c29ab500
commit
04b46bd01a
1 changed files with 1 additions and 1 deletions
2
fhost.py
2
fhost.py
|
@ -45,7 +45,7 @@ app.config["FHOST_MIME_BLACKLIST"] = [
|
|||
app.config["FHOST_UPLOAD_BLACKLIST"] = "tornodes.txt"
|
||||
|
||||
app.config["NSFW_DETECT"] = True
|
||||
app.config["NSFW_THRESHOLD"] = 0.7
|
||||
app.config["NSFW_THRESHOLD"] = 0.608
|
||||
|
||||
if app.config["NSFW_DETECT"]:
|
||||
from nsfw_detect import NSFWDetector
|
||||
|
|
Loading…
Reference in a new issue