unsqueeze
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def synthesise(text):
|
|
28 |
inputs = tokenizer(text, return_tensors="pt")
|
29 |
with torch.no_grad():
|
30 |
outputs = model(inputs["input_ids"])
|
31 |
-
speech = outputs["waveform"]
|
32 |
logging.info(speech)
|
33 |
return speech.cpu()
|
34 |
|
|
|
28 |
inputs = tokenizer(text, return_tensors="pt")
|
29 |
with torch.no_grad():
|
30 |
outputs = model(inputs["input_ids"])
|
31 |
+
speech = outputs["waveform"][0]
|
32 |
logging.info(speech)
|
33 |
return speech.cpu()
|
34 |
|