Spaces:
Running
Running
Commit
·
90405d9
1
Parent(s):
52877e8
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def get_json_data(url):
|
|
21 |
print(f"Error fetching JSON data: {e}")
|
22 |
return None
|
23 |
|
24 |
-
def check_nsfw(profile: Optional[gr.OAuthProfile]
|
25 |
if(profile.preferred_username in TRUSTED_UPLOADERS):
|
26 |
return True
|
27 |
if json_data["nsfw"]:
|
|
|
21 |
print(f"Error fetching JSON data: {e}")
|
22 |
return None
|
23 |
|
24 |
+
def check_nsfw(json_data, profile: Optional[gr.OAuthProfile]):
|
25 |
if(profile.preferred_username in TRUSTED_UPLOADERS):
|
26 |
return True
|
27 |
if json_data["nsfw"]:
|