Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,10 @@ def infer(text_raw, character, language, duration, noise_scale, noise_scale_w, i
|
|
135 |
x_tst = stn_tst.unsqueeze(0)
|
136 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
137 |
sid = torch.LongTensor([char_id])
|
138 |
-
|
|
|
|
|
|
|
139 |
durations = net_g.predict_duration(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale,
|
140 |
noise_scale_w=noise_scale_w, length_scale=duration)
|
141 |
char_dur_list = []
|
|
|
135 |
x_tst = stn_tst.unsqueeze(0)
|
136 |
x_tst_lengths = torch.LongTensor([stn_tst.size(0)])
|
137 |
sid = torch.LongTensor([char_id])
|
138 |
+
if not is_symbol:
|
139 |
+
jp2phoneme = japanese_cleaners(text)
|
140 |
+
else:
|
141 |
+
jp2phoneme = text
|
142 |
durations = net_g.predict_duration(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale,
|
143 |
noise_scale_w=noise_scale_w, length_scale=duration)
|
144 |
char_dur_list = []
|