tae98 commited on
Commit
f60b818
1 Parent(s): 2bbcb76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def cleanup_text(text):
35
  return text
36
 
37
  def translate(audio):
38
- outputs = asr_outputs(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
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