Skip to content

Commit

Permalink
fix: Remove labels kwarg from Whisper tokenizer padding
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Dec 13, 2023
1 parent 6430fd7 commit 6b80161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coral_models/whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def torch_call(self, features: list[dict]) -> BatchFeature:

# Pad the labels to max length
labels_batch = self.processor.tokenizer.pad(
labels=label_features,
label_features,
padding=self.padding,
return_tensors=self.return_tensors,
max_length=512,
Expand Down

0 comments on commit 6b80161

Please sign in to comment.