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:
Martin Herkt 2017-10-27 09:38:19 +02:00
parent c3c29ab500
commit 04b46bd01a
No known key found for this signature in database
GPG Key ID: C24B9CD04DC6AE7F

View File

@ -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