Spaces:
Running
Running
Update processImage.py
Browse files- processImage.py +1 -1
processImage.py
CHANGED
@@ -59,7 +59,7 @@ class ImageProcessor:
|
|
59 |
nsfw_score = next((item['score'] for item in json_response if item['label'] == 'nsfw'), 0)
|
60 |
print(f"NSFW Score: {nsfw_score}")
|
61 |
|
62 |
-
if nsfw_score > 0.
|
63 |
return None
|
64 |
|
65 |
return self
|
|
|
59 |
nsfw_score = next((item['score'] for item in json_response if item['label'] == 'nsfw'), 0)
|
60 |
print(f"NSFW Score: {nsfw_score}")
|
61 |
|
62 |
+
if nsfw_score > 0.5:
|
63 |
return None
|
64 |
|
65 |
return self
|