mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
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:
parent
43ffb785c0
commit
eaa5f41439
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue