From f76dbef82fbaf916c3d42b50bd89046af0f784a5 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Sat, 17 Dec 2022 02:32:51 +0100 Subject: [PATCH] Fix NSFW detection --- fhost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhost.py b/fhost.py index c1fd7cc..a59e22e 100755 --- a/fhost.py +++ b/fhost.py @@ -295,7 +295,7 @@ class File(db.Model): f.size = len(data) if not f.nsfw_score and app.config["NSFW_DETECT"]: - f.nsfw_score = nsfw.detect(p) + f.nsfw_score = nsfw.detect(str(p)) db.session.add(f) db.session.commit()