Unverified Commit eaa5f414 authored by mxkopy's avatar mxkopy Committed by GitHub
Browse files

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
parent 43ffb785
...@@ -89,7 +89,7 @@ class ClapProcessor(ProcessorMixin): ...@@ -89,7 +89,7 @@ class ClapProcessor(ProcessorMixin):
) )
if text is not None and audios is not None: if text is not None and audios is not None:
encoding["input_features"] = audio_features.input_features encoding.update(audio_features)
return encoding return encoding
elif text is not None: elif text is not None:
return encoding return encoding
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment