Skip to content

Commit

Permalink
Fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bhky committed Aug 17, 2024
1 parent d85edb2 commit 3b9f495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opennsfw2/_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _predict_from_image_handles_in_batches(


def predict_images(
image_handles: Sequence[str],
image_handles: Union[Sequence[str], Sequence[Image.Image]],
batch_size: int = 8,
preprocessing: Preprocessing = Preprocessing.YAHOO,
weights_path: Optional[str] = get_default_weights_path(),
Expand Down

0 comments on commit 3b9f495

Please sign in to comment.