Hatman commited on
Commit
4167f4d
·
verified ·
1 Parent(s): d852611

Update processImage.py

Browse files
Files changed (1) hide show
  1. 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.1:
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