JBJoyce commited on
Commit
e943787
·
1 Parent(s): fdd0775

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ model.to(device)
19
 
20
 
21
  def translate(audio):
22
- outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "translate"})
23
  return outputs["text"]
24
 
25
 
 
19
 
20
 
21
  def translate(audio):
22
+ outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "german"})
23
  return outputs["text"]
24
 
25