We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02ae108 + d64d1a5 commit ae9e74bCopy full SHA for ae9e74b
1 file changed
src/transformers/processing_utils.py
@@ -683,9 +683,8 @@ def __call__(
683
"feature_extractor": (audio, "audio_kwargs"),
684
}
685
outputs = {}
686
- for attribute_name in self.get_attributes():
+ for attribute_name, (input_data, input_kwargs) in attribute_to_kwargs.items():
687
attribute = getattr(self, attribute_name, None)
688
- input_data, input_kwargs = attribute_to_kwargs[attribute_name]
689
if input_data is not None and attribute is not None:
690
attribute_output = attribute(input_data, **kwargs[input_kwargs])
691
outputs.update(attribute_output)
0 commit comments