Mihaj commited on
Commit
4aa5150
·
verified ·
1 Parent(s): b0832f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,8 +31,9 @@ def transcribe(audio):
31
  # trans = pipe(y[start:end], chunk_length_s=10, stride_length_s=2)["text"]
32
  # lines.append(f"{res[0]} {res[1]} res{2} : {trans}")
33
  #text = "\n".join(lines)
34
- text = pipe(y, chunk_length_s=10, stride_length_s=(4, 2))["text"]
35
- return text
 
36
 
37
  iface = gr.Interface(
38
  fn=transcribe,
 
31
  # trans = pipe(y[start:end], chunk_length_s=10, stride_length_s=2)["text"]
32
  # lines.append(f"{res[0]} {res[1]} res{2} : {trans}")
33
  #text = "\n".join(lines)
34
+ res = pipe(y, chunk_length_s=10, stride_length_s=(4, 2))
35
+ text = res["text"]
36
+ return text + str(res)
37
 
38
  iface = gr.Interface(
39
  fn=transcribe,