Spaces:
Running
Running
Commit
·
4577b50
1
Parent(s):
ebbad6a
Update app.py
Browse files
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"]
|
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 |
|