From 04b46bd01a78c19f8b0a0189f0b30f554cd62691 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Fri, 27 Oct 2017 09:38:19 +0200 Subject: [PATCH] Tweak NSFW threshold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Of course it’ll have a few false positives, but this seems to work well with the 0x0.st dataset. --- fhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhost.py b/fhost.py index a181138..75986bc 100755 --- a/fhost.py +++ b/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