Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chatgpt_moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def chatgpt_moderation(prompt, model="text-moderation-stable", output_to_file=Fa
with open("output_chatgpt_moderation/" + response_raw['id'] + ".json", "w") as outfile:
json.dump(response_dict, outfile, indent=4)

# Get the violation status - does the input breaches the openai T&Cs - True means a breach.
# Get the violation status - does the input breach the OpenAI T&Cs - True means a breach.
flagged_status = response_raw['results'][0]['flagged']
if flagged_status is True:
reason_categories_dict = response_raw['results'][0]['categories']
Expand Down