taohoang commited on
Commit
71bc5ef
1 Parent(s): ece2678

Do nothing

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
  def translate(audio):
26
  # Trick Whisper to translate from any language to Dutch.
27
- # Note that using task='translate' will translate to English instead.
28
  outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "dutch"})
29
  return outputs["text"]
30
 
 
24
 
25
  def translate(audio):
26
  # Trick Whisper to translate from any language to Dutch.
27
+ # Note that using task=translate will translate to English instead.
28
  outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "dutch"})
29
  return outputs["text"]
30