summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2017-10-27 09:38:19 +0200
committerMartin Herkt <lachs0r@srsfckn.biz>2017-10-27 09:38:19 +0200
commit04b46bd01a78c19f8b0a0189f0b30f554cd62691 (patch)
treecadac4ead89df52b1fbfb0c24b457ea3a38384e0
parentc3c29ab500b9ccf3a0cd1031df026337e4c2b1f9 (diff)
Tweak NSFW threshold
Of course it’ll have a few false positives, but this seems to work well with the 0x0.st dataset.
-rwxr-xr-xfhost.py2
1 files changed, 1 insertions, 1 deletions
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