Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,7 @@ def get_json_data(url):
|
|
| 26 |
def check_nsfw(json_data, profile):
|
| 27 |
if json_data["nsfw"]:
|
| 28 |
return False
|
|
|
|
| 29 |
if(profile.preferred_username in TRUSTED_UPLOADERS):
|
| 30 |
return True
|
| 31 |
for model_version in json_data["modelVersions"]:
|
|
|
|
| 26 |
def check_nsfw(json_data, profile):
|
| 27 |
if json_data["nsfw"]:
|
| 28 |
return False
|
| 29 |
+
print(profile)
|
| 30 |
if(profile.preferred_username in TRUSTED_UPLOADERS):
|
| 31 |
return True
|
| 32 |
for model_version in json_data["modelVersions"]:
|