Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def translate(src, tgt, text):
|
|
28 |
return result
|
29 |
|
30 |
def transcribe(audio):
|
31 |
-
transcribed = p(audio, chunk_length_s=20, stride_length_s=(0, 0))["text"]
|
32 |
|
33 |
punctuated = ttp(transcribed, max_length = 512)[0]["generated_text"]
|
34 |
|
|
|
28 |
return result
|
29 |
|
30 |
def transcribe(audio):
|
31 |
+
transcribed = p(audio[1], chunk_length_s=20, stride_length_s=(0, 0))["text"]
|
32 |
|
33 |
punctuated = ttp(transcribed, max_length = 512)[0]["generated_text"]
|
34 |
|