server bug fix

This commit is contained in:
Eren Golge 2019-08-21 16:09:09 +02:00
parent 5ff8544d6a
commit ff01490e48
1 changed files with 5 additions and 3 deletions

View File

@ -145,9 +145,11 @@ class Synthesizer(object):
print(sen)
seq = np.array(self.input_adapter(sen))
text_hat = sequence_to_phoneme(seq)
print(text_hat)
if self.use_phonemes:
text_hat = sequence_to_phoneme(seq)
print(text_hat)
chars_var = torch.from_numpy(seq).unsqueeze(0).long()
if self.use_cuda: