Yusin commited on
Commit
e0fcf8f
1 Parent(s): 2418a12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,7 +36,8 @@ def chat_hf(audio, custom_token, language):
36
  gpt_response = """Sorry, I'm quite busy right now, but please try again later :)"""
37
 
38
  # to voice
39
- if language == 'cn' or 'jp':
 
40
  text = gpt_response.strip().replace(' ', '').replace('\n', '').replace('\r', '')
41
  text = infer.clean_text(text)
42
  audio = infer.infer(text, net_g_ms, 0, "demo")
 
36
  gpt_response = """Sorry, I'm quite busy right now, but please try again later :)"""
37
 
38
  # to voice
39
+ print(language)
40
+ if language in ['cn', 'jp']:
41
  text = gpt_response.strip().replace(' ', '').replace('\n', '').replace('\r', '')
42
  text = infer.clean_text(text)
43
  audio = infer.infer(text, net_g_ms, 0, "demo")