Skip to content

Commit

Permalink
adding whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hkwon committed Aug 14, 2024
1 parent 065b240 commit 785a0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,6 @@ def test_transformers_wav2vec2(

predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.decode(predicted_ids, output_word_offsets=True)
transcription = transcription[0].replace(processor.tokenizer.unk_token,'')
transcription = transcription[0].replace(processor.tokenizer.unk_token, '')

assert transcription == expected_transcription[0]

0 comments on commit 785a0ad

Please sign in to comment.