pknayak commited on
Commit
0df14c8
1 Parent(s): 35fac88

Update app.py

Browse files

correct method "asr_pipe" to be called instead of "pipe".

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
  # outputs = pipe(audio, max_new_tokens=256, generate_kwargs={"task":"translate"})
27
- outputs = pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
28
  return outputs["text"]
29
 
30
 
 
24
 
25
  def translate(audio):
26
  # outputs = pipe(audio, max_new_tokens=256, generate_kwargs={"task":"translate"})
27
+ outputs = asr_pipe(audio, max_new_tokens=256, generate_kwargs={"task": "transcribe", "language": "es"})
28
  return outputs["text"]
29
 
30