aboutsummaryrefslogtreecommitdiff
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
parentFaster query commands, add removed query filter (diff)
downloadhex-zero-04b46bd01a78c19f8b0a0189f0b30f554cd62691.tar.gz
hex-zero-04b46bd01a78c19f8b0a0189f0b30f554cd62691.tar.bz2
hex-zero-04b46bd01a78c19f8b0a0189f0b30f554cd62691.zip
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
bgstack15