Skip to content

Commit dad762b

Browse files
alex-jw-brooksjaycha
authored andcommitted
Fix qwen2audio wanr -> warn (huggingface#37559)
Signed-off-by: Alex-Brooks <[email protected]>
1 parent 737b6cb commit dad762b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/transformers/models/qwen2_audio/processing_qwen2_audio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ def __call__(
105105
The audio or batch of audios to be prepared. Each audio can be a NumPy array.
106106
"""
107107

108-
# Handle BC when user passes deprecared keyword argument
108+
# Handle BC when user passes deprecated keyword argument
109109
if audios is not None and audio is None:
110110
audio = audios
111-
warnings.wanr(
111+
warnings.warn(
112112
"You may have used the keyword argument for the `audio` inputs. It is strongly recommended to pass inputs with keyword arguments "
113-
"with keys `audio` and `text`. From transformers v4.55 `audio` will be the onle acceptable keyword argument.",
113+
"with keys `audio` and `text`. From transformers v4.55 `audio` will be the only acceptable keyword argument.",
114114
FutureWarning,
115115
)
116116

0 commit comments

Comments
 (0)