Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -127,8 +127,6 @@ def infer(text_raw, character, language, duration, noise_scale, noise_scale_w, i
|
|
127 |
text = tss.google(text_raw, from_language='zh', to_language='ja')
|
128 |
elif language == 'English':
|
129 |
text = tss.google(text_raw, from_language='en', to_language='ja')
|
130 |
-
elif language == "English2Katakana":
|
131 |
-
text = romajitable.to_kana(text_raw).katakana
|
132 |
char_id = int(character.split(':')[0])
|
133 |
stn_tst = get_text(text, hps, is_symbol)
|
134 |
with torch.no_grad():
|
|
|
127 |
text = tss.google(text_raw, from_language='zh', to_language='ja')
|
128 |
elif language == 'English':
|
129 |
text = tss.google(text_raw, from_language='en', to_language='ja')
|
|
|
|
|
130 |
char_id = int(character.split(':')[0])
|
131 |
stn_tst = get_text(text, hps, is_symbol)
|
132 |
with torch.no_grad():
|