Fixed error message in mllama (#34106)

This commit is contained in:
Diogo Miguel Silva 2024-10-14 09:30:35 +01:00 committed by GitHub
parent cb5ca3265f
commit 013d3ac2b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: