chenjgtea commited on
Commit
602e4a2
1 Parent(s): 5c0140c

新增gpu模式下chattts代码

Browse files
Files changed (1) hide show
  1. web/app_gpu.py +1 -1
web/app_gpu.py CHANGED
@@ -245,7 +245,7 @@ def get_chat_infer_audio(text,
245
  #yield 24000, float_to_int16(wav[0]).T
246
  audio_data = np.array(wav[0]).flatten()
247
  sample_rate = 24000
248
- text_data = text[0] if isinstance(text, list) else text
249
 
250
  return [text_data,(sample_rate, audio_data)]
251
 
 
245
  #yield 24000, float_to_int16(wav[0]).T
246
  audio_data = np.array(wav[0]).flatten()
247
  sample_rate = 24000
248
+ text_data = chat_txt[0] if isinstance(chat_txt, list) else chat_txt
249
 
250
  return [text_data,(sample_rate, audio_data)]
251