From 528ae3fafebecf8ec196d3550e176661da053eb6 Mon Sep 17 00:00:00 2001 From: Julius Unverfehrt Date: Thu, 30 Jan 2025 14:26:51 +0100 Subject: [PATCH] chore: try to fix custom build by pushing again --- src/image_prediction/pipeline.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/image_prediction/pipeline.py b/src/image_prediction/pipeline.py index 8219a9d..8bf0ff0 100644 --- a/src/image_prediction/pipeline.py +++ b/src/image_prediction/pipeline.py @@ -79,6 +79,12 @@ class Pipeline: def filter_duplicates(metadata: Iterable[dict[str, Any]]) -> Iterable[dict[str, Any]]: """Filter out duplicate images from the `position` (image coordinates), `page` and `representation` (perceptual hash). See RED-10765 (RM-241): Removed redactions reappear for why this is necessary. + + Args: + metadata: Iterable of image metadata dicts. + + Returns: + Iterable of image metadata dicts with duplicates removed. """ seen = set() for item in metadata: