Commit
•
b771920
1
Parent(s):
3f9b353
Update README.md
Browse files
README.md
CHANGED
@@ -27,10 +27,10 @@ To transcribe audio files the model can be used as a standalone acoustic model a
|
|
27 |
processor = Wav2Vec2Processor.from_pretrained("sanchit-gandhi/wav2vec2-large-tedlium")
|
28 |
model = Wav2Vec2ForCTC.from_pretrained("sanchit-gandhi/wav2vec2-large-tedlium")
|
29 |
|
30 |
-
# load dummy dataset
|
31 |
ds = load_dataset("sanchit-gandhi/tedlium_dummy", split="validation")
|
32 |
|
33 |
-
#
|
34 |
input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values # Batch size 1
|
35 |
|
36 |
# retrieve logits
|
|
|
27 |
processor = Wav2Vec2Processor.from_pretrained("sanchit-gandhi/wav2vec2-large-tedlium")
|
28 |
model = Wav2Vec2ForCTC.from_pretrained("sanchit-gandhi/wav2vec2-large-tedlium")
|
29 |
|
30 |
+
# load dummy dataset
|
31 |
ds = load_dataset("sanchit-gandhi/tedlium_dummy", split="validation")
|
32 |
|
33 |
+
# process audio inputs
|
34 |
input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values # Batch size 1
|
35 |
|
36 |
# retrieve logits
|