From bc439d97a108bdf2acc5354eef13c84c34030ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gourieff=20=7C=20=E5=8F=A4=E4=BB=81?= Date: Thu, 22 May 2025 17:09:17 +0700 Subject: [PATCH] HOTFIX: " -> ' Issue #125 --- scripts/reactor_sfw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reactor_sfw.py b/scripts/reactor_sfw.py index 98896ce..25648c9 100644 --- a/scripts/reactor_sfw.py +++ b/scripts/reactor_sfw.py @@ -51,6 +51,6 @@ def nsfw_image(img_data, model_path: str): predict = pipeline("image-classification", model=model_path, device=device_id) result = predict(img) if result[0]["label"] == "nsfw" and result[0]["score"] > SCORE: - logger.status(f"NSFW content detected with score={result[0]["score"]}, skipping...") + logger.status(f'NSFW content detected with score={result[0]["score"]}, skipping...') return True return False