unijoh commited on
Commit
d2403b3
1 Parent(s): a8294ea

Update tts.py

Browse files
Files changed (1) hide show
  1. tts.py +1 -1
tts.py CHANGED
@@ -15,4 +15,4 @@ def synthesize_speech(text):
15
  with torch.no_grad():
16
  speech = model.generate(**inputs)
17
 
18
- return processor.decode(speech)
 
15
  with torch.no_grad():
16
  speech = model.generate(**inputs)
17
 
18
+ return processor.decode(speech, skip_special_tokens=True)