Skip to content

Conversation

manash997
Copy link

Changes the condition for adding bandwidth parameter from direct access to checking if it exists in encoder_signature.

Before:
if bandwidth is not None:
batch["bandwidth"] = bandwidth

After:
if bandwidth in encoder_signature:
batch["bandwidth"] = bandwidth

This fixes the "unexpected keyword argument 'bandwidth'" error by only adding the parameter when it's supported by the encoder signature. I was getting the error while trying to finetune the model

Updated function apply_audio_decoder to check bandwidth in encoder_signature, since it is not accepted by model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant