multimodalart HF staff commited on
Commit
827956e
1 Parent(s): 7256938

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def check_nsfw(json_data, profile):
31
  return True
32
  for model_version in json_data["modelVersions"]:
33
  for image in model_version["images"]:
34
- if image["nsfw"] > 5:
35
  return False
36
  return True
37
 
 
31
  return True
32
  for model_version in json_data["modelVersions"]:
33
  for image in model_version["images"]:
34
+ if image["nsfwLevel"] > 5:
35
  return False
36
  return True
37