fisheggg commited on
Commit
f5ef656
1 Parent(s): b69950b

Update app.py

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