Update app.py
Browse files
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 |
-
|
35 |
-
|
|
|
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,
|