mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 11:11:05 +06: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
@ -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 New Issue
Block a user