Skip to content

Commit

Permalink
[Screenshot] remove unwanted debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Sep 25, 2024
1 parent 90cc46a commit 54b0e86
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion screenshot/common/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,5 @@ def large(self, image: bytes) -> bool:
response: List[Dict[str, Union[str, float]]] = cast(
List[Dict[str, Union[str, float]]], self.models["large"](img)
)
log.debug(response)
pred: Dict[str, Union[str, float]] = max(response, key=lambda x: x["score"])
return cast(str, pred["label"]).lower() == "nsfw"

0 comments on commit 54b0e86

Please sign in to comment.