Spaces:
Runtime error
Runtime error
Commit
·
25cbc36
1
Parent(s):
6ff8067
Update app.py
Browse files
app.py
CHANGED
@@ -43,11 +43,7 @@ def inference(audio):
|
|
43 |
with torch.no_grad():
|
44 |
logits = model(input_values).logits
|
45 |
|
46 |
-
|
47 |
-
h = logits.numpy()[0,:,:]
|
48 |
-
v = np.pad(h, [0, 2], mode='constant')
|
49 |
-
|
50 |
-
output = processor.decode(v).text
|
51 |
|
52 |
return output[:-4]
|
53 |
|
|
|
43 |
with torch.no_grad():
|
44 |
logits = model(input_values).logits
|
45 |
|
46 |
+
output = processor.decode(logits.numpy()[0]).text
|
|
|
|
|
|
|
|
|
47 |
|
48 |
return output[:-4]
|
49 |
|