Update README.md
Browse files
README.md
CHANGED
@@ -107,7 +107,7 @@ model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h").to("cuda")
|
|
107 |
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
|
108 |
|
109 |
def map_to_pred(batch):
|
110 |
-
input_values = processor(batch["audio"]["array"], return_tensors="pt", padding="longest").input_values
|
111 |
with torch.no_grad():
|
112 |
logits = model(input_values.to("cuda")).logits
|
113 |
|
|
|
107 |
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
|
108 |
|
109 |
def map_to_pred(batch):
|
110 |
+
input_values = processor(batch["audio"][0]["array"], return_tensors="pt", padding="longest").input_values
|
111 |
with torch.no_grad():
|
112 |
logits = model(input_values.to("cuda")).logits
|
113 |
|