two warnings

#190
by youarecode - opened

Just tried it out the working code you provide for us in the description and got the following errors:

  1. deprecation warning

.venv/lib/python3.12/site-packages/transformers/models/whisper/generation_whisper.py:573: FutureWarning: The input name `inputs` is deprecated. Please make sure to use `input_features` instead.

which follows to the hugging face whisper model: WhisperGenerationMixin

So to solve this deprecation warning, somehow you have to fast-forward the model with the new 'input_features' instead of just 'inputs'... maybe adding an if statement for backwards compatibility...


  1. Then i got the following warning as i passed in the language key:

You have passed language=es, but also have set `forced_decoder_ids` to [[1, None], [2, 50360]] which creates a conflict. `forced_decoder_ids` will be ignored in favor of language=es.

how do i get rid of this error:
my kwargs are:
generate_kwargs = {"language": "es", "task": "transcribe"}

so everything works amazingly perfect, but no person in the earth would want to see a warning error...
thank you very much!

Sign up or log in to comment