Update deprecated type hinting in models (#18132)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
from typing import Dict, Optional
|
||||
from typing import Optional
|
||||
|
||||
from transformers import SmolVLMProcessor
|
||||
|
||||
@@ -21,7 +21,7 @@ class SmolVLMProcessingInfo(Idefics3ProcessingInfo):
|
||||
def get_hf_processor(
|
||||
self,
|
||||
*,
|
||||
max_image_size: Optional[Dict[str, int]] = None,
|
||||
max_image_size: Optional[dict[str, int]] = None,
|
||||
**kwargs: object,
|
||||
) -> SmolVLMProcessor:
|
||||
if max_image_size is not None:
|
||||
|
||||
Reference in New Issue
Block a user