Fix-ci-whisper (#21767)
* fix history * input_features instead of input ids for TFWhisport doctest * use translate intead of transcribe
This commit is contained in:
@@ -1187,7 +1187,7 @@ class WhisperModelIntegrationTests(unittest.TestCase):
|
||||
|
||||
input_speech = self._load_datasamples(4)
|
||||
input_features = processor.feature_extractor(raw_speech=input_speech, return_tensors="pt").input_features
|
||||
generated_ids = model.generate(input_features, max_length=20)
|
||||
generated_ids = model.generate(input_features, max_length=20, task="translate")
|
||||
|
||||
# fmt: off
|
||||
EXPECTED_LOGITS = torch.tensor(
|
||||
|
||||
Reference in New Issue
Block a user