Skip to content
Prev Previous commit
Next Next commit
Fixing CI/CD tests.
  • Loading branch information
millianlmx committed Aug 27, 2024
commit b30e36fa33445b3618fc0829e43291d79b3edf52
2 changes: 1 addition & 1 deletion detect_secrets/filters/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def should_exclude_secret(secret: str, plugin: Optional[Plugin] = None) -> bool:
raise AssertionError('Attempting to use uninitialized HuggingFace model.')

pipeline = get_model(model_name, token)
result:Dict[str, Union[str, float]] = pipeline(secret)[0]
result: Dict[str, Union[str, float]] = pipeline(secret)[0]

return result['label'] == 'LABEL_1' and result['score'] >= threshold

Expand Down