Update README.md (#3)
- Update README.md (933dd954d44445fa823390fd4ceeeed6049bcc35) Co-authored-by: Luigi Liu <Luigi@users.noreply.huggingface.co>
This commit is contained in:
parent
b8d7ffd4a8
commit
f3b5e97e6e
|
@ -115,7 +115,7 @@ The "<|en|>" token is used to specify that the speech is in english and should b
|
|||
>>> input_features = processor(ds[0]["audio"]["array"], return_tensors="pt").input_features
|
||||
|
||||
>>> # Generate logits
|
||||
>>> logits = model(input_features, decoder_input_ids = torch.tensor([[50258]]).logits
|
||||
>>> logits = model(input_features, decoder_input_ids = torch.tensor([[50258]])).logits
|
||||
>>> # take argmax and decode
|
||||
>>> predicted_ids = torch.argmax(logits, dim=-1)
|
||||
>>> transcription = processor.batch_decode(predicted_ids)
|
||||
|
|
Loading…
Reference in New Issue