This commit is contained in:
Cyberes 2023-10-03 00:12:37 -06:00
parent 70126acdf2
commit 0f5e22191c
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ def check_moderation_endpoint(prompt: str):
response.raise_for_status() response.raise_for_status()
response = response.json() response = response.json()
print(response.text)
offending_categories = [] offending_categories = []
for k, v in response['results'][0]['categories'].items(): for k, v in response['results'][0]['categories'].items():
if v: if v: