Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def cleanup_text(text):
|
|
35 |
return text
|
36 |
|
37 |
def translate(audio):
|
38 |
-
outputs =
|
39 |
return outputs["text"]
|
40 |
|
41 |
|
|
|
35 |
return text
|
36 |
|
37 |
def translate(audio):
|
38 |
+
outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
|
39 |
return outputs["text"]
|
40 |
|
41 |
|