mitro99 commited on
Commit
80cb38e
1 Parent(s): a74e1f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,9 +33,9 @@ def synthesise(text):
33
  inputs = tokenizer(text=text, return_tensors="pt")
34
  # speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
35
  with torch.no_grad():
36
- outputs = model(inputs['input_ids'])
37
 
38
- speech = outputs['waveform']
39
  return speech.cpu()
40
 
41
 
 
33
  inputs = tokenizer(text=text, return_tensors="pt")
34
  # speech = model.generate_speech(inputs["input_ids"].to(device), speaker_embeddings.to(device), vocoder=vocoder)
35
  with torch.no_grad():
36
+ tts_output = model(inputs['input_ids'].to(device))
37
 
38
+ speech = tts_output['waveform']
39
  return speech.cpu()
40
 
41