Barani1-t commited on
Commit
e71ca8d
·
1 Parent(s): b332b05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def translate(audio):
31
 
32
  def synthesise(text):
33
  inputs = processor(text=text, padding='max_length', truncation=True,max_length=600,return_tensors="pt")
34
- speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
35
  return speech.cpu()
36
 
37
 
 
31
 
32
  def synthesise(text):
33
  inputs = processor(text=text, padding='max_length', truncation=True,max_length=600,return_tensors="pt")
34
+ speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device),vocoder=vocoder)
35
  return speech.cpu()
36
 
37