Fix qwen2audio wanr -> warn (#37559)

Signed-off-by: Alex-Brooks <Alex.Brooks@ibm.com>
This commit is contained in:
Alex Brooks 2025-04-17 07:34:58 -06:00 committed by GitHub
parent dc06e7cecd
commit c7d3cc67a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,12 +105,12 @@ class Qwen2AudioProcessor(ProcessorMixin):
The audio or batch of audios to be prepared. Each audio can be a NumPy array.
"""
# Handle BC when user passes deprecared keyword argument
# Handle BC when user passes deprecated keyword argument
if audios is not None and audio is None:
audio = audios
warnings.wanr(
warnings.warn(
"You may have used the keyword argument for the `audio` inputs. It is strongly recommended to pass inputs with keyword arguments "
"with keys `audio` and `text`. From transformers v4.55 `audio` will be the onle acceptable keyword argument.",
"with keys `audio` and `text`. From transformers v4.55 `audio` will be the only acceptable keyword argument.",
FutureWarning,
)