Fix ClapProcessor to merge feature_extractor output into the returned BatchEncoding (#31767)

* fixed ClapProcessor to merge all values output from the feature extractor into the returned BatchEncoding.

* fixed trailing whitespace
This commit is contained in:
mxkopy 2024-07-04 22:55:47 -07:00 committed by GitHub
parent 43ffb785c0
commit eaa5f41439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ class ClapProcessor(ProcessorMixin):
)
if text is not None and audios is not None:
encoding["input_features"] = audio_features.input_features
encoding.update(audio_features)
return encoding
elif text is not None:
return encoding