Plachta commited on
Commit
1023f68
1 Parent(s): 210468c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-'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():
 
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():