Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,9 +53,9 @@ def infer(text, character, language):
|
|
53 |
if language == '日本語':
|
54 |
pass
|
55 |
elif language == '简体中文':
|
56 |
-
text = ts.google(text, from_language='zh', to_language
|
57 |
elif language == 'English':
|
58 |
-
text = ts.google(text, from_language='en', to_language
|
59 |
char_id = int(character.split(':')[0])
|
60 |
stn_tst = get_text(text, hps)
|
61 |
with torch.no_grad():
|
|
|
53 |
if language == '日本語':
|
54 |
pass
|
55 |
elif language == '简体中文':
|
56 |
+
text = ts.google(text, from_language='zh', to_language='ja')
|
57 |
elif language == 'English':
|
58 |
+
text = ts.google(text, from_language='en', to_language='ja')
|
59 |
char_id = int(character.split(':')[0])
|
60 |
stn_tst = get_text(text, hps)
|
61 |
with torch.no_grad():
|