vadhri commited on
Commit
1a56ce9
1 Parent(s): 7b3f433

Update app.py

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