Yusin commited on
Commit
173f6a5
·
1 Parent(s): 21789e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ def chat_hf(audio, custom_token, language):
36
 
37
  # to voice
38
  if language == 'cn' or 'jp':
39
- #text = infer.clean_text(gpt_response)
40
- audio = infer.infer(gpt_response, net_g_ms, 2, "demo")
41
  voice_out = (hps.data.sampling_rate, audio)
42
  else:
43
  with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp:
 
36
 
37
  # to voice
38
  if language == 'cn' or 'jp':
39
+ text = infer.clean_text(gpt_response)
40
+ audio = infer.infer(text, net_g_ms, 2, "demo")
41
  voice_out = (hps.data.sampling_rate, audio)
42
  else:
43
  with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as fp: