Update README.md
#4
by
divush
- opened
README.md
CHANGED
@@ -40,8 +40,8 @@ input_values = processor(resampled_audio, return_tensors="pt").input_values
|
|
40 |
with torch.no_grad():
|
41 |
logits = model(input_values.to(DEVICE_ID)).logits.cpu()
|
42 |
|
43 |
-
prediction_ids = torch.argmax(logits, dim=-1)
|
44 |
-
output_str = processor.batch_decode(
|
45 |
print(f"Greedy Decoding: {output_str}")
|
46 |
```
|
47 |
|
|
|
40 |
with torch.no_grad():
|
41 |
logits = model(input_values.to(DEVICE_ID)).logits.cpu()
|
42 |
|
43 |
+
<!-- prediction_ids = torch.argmax(logits, dim=-1) -->
|
44 |
+
output_str = processor.batch_decode(logits.numpy())[0]
|
45 |
print(f"Greedy Decoding: {output_str}")
|
46 |
```
|
47 |
|