Antoine101 commited on
Commit
a7880e7
1 Parent(s): 3f57cb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ speaker_embeddings = torch.tensor(embeddings_dataset[7306]["xvector"]).unsqueeze
24
 
25
 
26
  def translate(audio):
27
- outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "translate", "language": "fr"})
28
  return outputs["text"]
29
 
30
 
 
24
 
25
 
26
  def translate(audio):
27
+ outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "fr"})
28
  return outputs["text"]
29
 
30