Saeid commited on
Commit
11e8da2
1 Parent(s): 22aad52

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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