patrickvonplaten
commited on
Commit
·
2409eda
1
Parent(s):
d72d8ff
Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ To transcribe audio files the model can be used as a standalone acoustic model a
|
|
58 |
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
|
59 |
|
60 |
# tokenize
|
61 |
-
input_values = processor(
|
62 |
|
63 |
# retrieve logits
|
64 |
logits = model(input_values).logits
|
|
|
58 |
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
|
59 |
|
60 |
# tokenize
|
61 |
+
input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values
|
62 |
|
63 |
# retrieve logits
|
64 |
logits = model(input_values).logits
|