Skip to content

Commit

Permalink
fix bugs for LabelConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Immortalise committed Aug 20, 2023
1 parent d5252bf commit 3c3c8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt_attack/label_constraint.py
Expand Up @@ -9,7 +9,7 @@ class LabelConstraint(PreTransformationConstraint):
"""

def __init__(self, labels=[]):
self.labels = labels
self.labels = [label.lower() for label in labels]

def _get_modifiable_indices(self, current_text):
modifiable_indices = set()
Expand Down

0 comments on commit 3c3c8d9

Please sign in to comment.