fisheggg commited on
Commit
b69950b
1 Parent(s): 69f1cf5

Update app.py

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