Skip to content

Commit

Permalink
update safety scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-iai committed Jul 7, 2024
1 parent 09c26d7 commit b0d9da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/score/safefy/s1-nsfw-image-description.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
model_id = args.model_id

keyname_mapping = {
"PerspectiveAPIEvaluator:pred_mean": "PersepectiveScore",
"ModerationAPIEvaluator:pred_mean": "ModerationScore",
"google_perspective_api_eval:pred_mean": "PersepectiveScore",
"openai_moderation_api_eval:pred_mean": "ModerationScore",
"rule_reject_template_eval:pred_mean": "RtA",
}

Expand Down
4 changes: 2 additions & 2 deletions scripts/score/safefy/s3-toxic-content-generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
model_id = args.model_id

keyname_mapping = {
"PerspectiveAPIEvaluator:pred_mean": "PersepectiveScore",
"ModerationAPIEvaluator:pred_mean": "ModerationScore",
"google_perspective_api_eval:pred_mean": "PersepectiveScore",
"openai_moderation_api_eval:pred_mean": "ModerationScore",
"rule_reject_template_eval:pred_mean": "RtA",
}

Expand Down

0 comments on commit b0d9da1

Please sign in to comment.