multimodalart HF staff commited on
Commit
4577b50
·
1 Parent(s): ebbad6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def check_nsfw(json_data, profile):
28
  return True
29
  for model_version in json_data["modelVersions"]:
30
  for image in model_version["images"]:
31
- if image["nsfw"] != "None":
32
  return False
33
  return True
34
 
 
28
  return True
29
  for model_version in json_data["modelVersions"]:
30
  for image in model_version["images"]:
31
+ if image["nsfw"] not in ["None", "Soft"]:
32
  return False
33
  return True
34