Skip to content

Commit

Permalink
rm dupe DEFAULT_PARAMS
Browse files Browse the repository at this point in the history
  • Loading branch information
leondz committed Jul 6, 2024
1 parent 4ad1603 commit 853cd94
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions garak/detectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@ class Detector(Configurable):
active = True
tags = [] # list of taxonomy categories per the MISP format

DEFAULT_PARAMS = {
"skip": False,
}

# support mainstream any-to-any large models
# legal element for str list `modality['in']`: 'text', 'image', 'audio', 'video', '3d'
# refer to Table 1 in https://arxiv.org/abs/2401.13601
# we focus on LLM output for detectors
modality: dict = {"out": {"text"}}

DEFAULT_PARAMS = {}
DEFAULT_PARAMS = {
"skip": False,
}

def _set_description(self):
if "description" not in dir(self):
Expand Down

0 comments on commit 853cd94

Please sign in to comment.