mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fixed error message in mllama (#34106)
This commit is contained in:
parent
cb5ca3265f
commit
013d3ac2b5
@ -302,7 +302,7 @@ class MllamaProcessor(ProcessorMixin):
|
||||
raise ValueError("No image were provided, but there are image tokens in the prompt")
|
||||
else:
|
||||
raise ValueError(
|
||||
f"The number of image token ({sum(n_images_in_images)}) should be the same as in the number of provided images ({sum(n_images_in_images)})"
|
||||
f"The number of image token ({sum(n_images_in_text)}) should be the same as in the number of provided images ({sum(n_images_in_images)})"
|
||||
)
|
||||
|
||||
if images is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user