Update app.py
Browse files
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 |
-
|
37 |
|
38 |
-
speech =
|
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 |
|