flozi00 commited on
Commit
8113b92
·
1 Parent(s): cb4b34e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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