From c20f3a3affcda2e8bfafdd757ed7889aa445dcbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=93=D1=83?= =?UTF-8?q?=D1=80=D1=8C=D0=B5=D0=B2=20=7C=20Eugene=20Gourieff=20=7C=20?= =?UTF-8?q?=E5=8F=A4=E4=BB=81?= Date: Sat, 18 Jan 2025 12:57:30 +0700 Subject: [PATCH] FIX: Unused variables --- scripts/reactor_sfw.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/reactor_sfw.py b/scripts/reactor_sfw.py index ec1d977..029ea55 100644 --- a/scripts/reactor_sfw.py +++ b/scripts/reactor_sfw.py @@ -6,9 +6,6 @@ SCORE = 0.85 logging.getLogger('transformers').setLevel(logging.ERROR) -img_path = "test.jpg" -model_path = "models/vit-base-nsfw-detector" - def nsfw_image(img_path: str, model_path: str): img = Image.open(img_path) predict = pipeline("image-classification", model=model_path)