Spaces:
Running
on
Zero
Running
on
Zero
Update whisper2.py
Browse files- whisper2.py +1 -1
whisper2.py
CHANGED
|
@@ -106,7 +106,7 @@ def generate(audio):
|
|
| 106 |
)
|
| 107 |
output = processor.batch_decode(pred_ids, skip_special_tokens=True)
|
| 108 |
|
| 109 |
-
|
| 110 |
if length <= 30:
|
| 111 |
return output[1:]
|
| 112 |
else:
|
|
|
|
| 106 |
)
|
| 107 |
output = processor.batch_decode(pred_ids, skip_special_tokens=True)
|
| 108 |
|
| 109 |
+
|
| 110 |
if length <= 30:
|
| 111 |
return output[1:]
|
| 112 |
else:
|