vadhri commited on
Commit
b3d9767
1 Parent(s): f88c2ea

Update app.py

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