mitudesk commited on
Commit
beaf1cc
1 Parent(s): b515298

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -42,9 +42,7 @@ limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in h
42
  def create_tts_fn(model, hps, speaker_ids):
43
  def tts_fn(text, speaker, language, speed, is_symbol):
44
  text=text.encode('utf-8')
45
- s = text.encode('unicode_escape')
46
- ss = s.decode('utf-8').replace('\\x', '%')
47
- text = parse.unquote(ss)
48
  print(text, speaker, language, speed, is_symbol)
49
  text='你好'
50
  speaker='草上飞 Grass Wonder (Umamusume Pretty Derby)'
 
42
  def create_tts_fn(model, hps, speaker_ids):
43
  def tts_fn(text, speaker, language, speed, is_symbol):
44
  text=text.encode('utf-8')
45
+ s = text.decode()
 
 
46
  print(text, speaker, language, speed, is_symbol)
47
  text='你好'
48
  speaker='草上飞 Grass Wonder (Umamusume Pretty Derby)'