Spaces:
Running
Running
Commit
•
827956e
1
Parent(s):
7256938
Update app.py
Browse files
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["
|
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 |
|