preetam8 commited on
Commit
d614113
·
1 Parent(s): af4a9d1
Files changed (1) hide show
  1. app.py +1 -1
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