Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def process_chunk(i, chunk, waveform, sr):
|
|
| 120 |
with torch.no_grad():
|
| 121 |
logits = model(**inputs).logits
|
| 122 |
|
| 123 |
-
text = processor.decode(logits.cpu().numpy()[0], beam_width=
|
| 124 |
return text
|
| 125 |
|
| 126 |
# ------------------ TRANSCRIBE ------------------
|
|
|
|
| 120 |
with torch.no_grad():
|
| 121 |
logits = model(**inputs).logits
|
| 122 |
|
| 123 |
+
text = processor.decode(logits.cpu().numpy()[0], beam_width=100).text
|
| 124 |
return text
|
| 125 |
|
| 126 |
# ------------------ TRANSCRIBE ------------------
|