test
This commit is contained in:
parent
70126acdf2
commit
0f5e22191c
|
@ -14,6 +14,8 @@ def check_moderation_endpoint(prompt: str):
|
|||
response.raise_for_status()
|
||||
response = response.json()
|
||||
|
||||
print(response.text)
|
||||
|
||||
offending_categories = []
|
||||
for k, v in response['results'][0]['categories'].items():
|
||||
if v:
|
||||
|
|
Reference in New Issue