thianfoo commited on
Commit
9e03404
·
verified ·
1 Parent(s): a8f1469

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ MAX_IMAGE_SIZE = 1024
49
  # Speech GenAI
50
  # Function for translating different language using pretrained models
51
  def translate(audio):
52
- outputs = asr_pipe(input_features=audio, max_new_tokens=256, generate_kwargs={"task": "translate"})
53
  return outputs["text"]
54
 
55
  # Function to synthesise the text using the processor above
 
49
  # Speech GenAI
50
  # Function for translating different language using pretrained models
51
  def translate(audio):
52
+ outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "translate"})
53
  return outputs["text"]
54
 
55
  # Function to synthesise the text using the processor above