Terps commited on
Commit
315453f
·
1 Parent(s): e9230d7

Update app.py

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