diff --git a/src/transformers/models/udop/processing_udop.py b/src/transformers/models/udop/processing_udop.py index 3d4cfc9ce4334e..1eae94ea4609ff 100644 --- a/src/transformers/models/udop/processing_udop.py +++ b/src/transformers/models/udop/processing_udop.py @@ -16,23 +16,16 @@ Processor class for UDOP. """ -import sys from typing import List, Optional, Union from transformers import logging from ...image_processing_utils import BatchFeature from ...image_utils import ImageInput -from ...processing_utils import ProcessingKwargs, ProcessorMixin, TextKwargs +from ...processing_utils import ProcessingKwargs, ProcessorMixin, TextKwargs, Unpack from ...tokenization_utils_base import PreTokenizedInput, TextInput -if sys.version_info >= (3, 11): - from typing import Unpack -else: - from typing_extensions import Unpack - - logger = logging.get_logger(__name__)