Daniel981215 commited on
Commit
2bfd5b0
1 Parent(s): 3946c3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def normalize_replace_string(input_string, replacements):
36
 
37
 
38
  def translate(audio):
39
- outputs = pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
40
  output_txt = normalize_replace_string(outputs["text"], replacements)
41
 
42
  return output_txt
 
36
 
37
 
38
  def translate(audio):
39
+ outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
40
  output_txt = normalize_replace_string(outputs["text"], replacements)
41
 
42
  return output_txt