Shiro2 commited on
Commit
9470e61
·
verified ·
1 Parent(s): d093ea9

Upload app (Copy).py

Browse files
Files changed (1) hide show
  1. app (Copy).py +1 -1
app (Copy).py CHANGED
@@ -38,7 +38,7 @@ def get_text(text, hps, is_symbol):
38
 
39
  def create_tts_fn(net_g_ms, speaker_id):
40
  def tts_fn(text, language, noise_scale, noise_scale_w, length_scale, is_symbol):
41
- english, japanese = generate_response(pipe, text)
42
  text = japanese.replace('\n', ' ').replace('\r', '').replace(" ", "")
43
  if limitation:
44
  text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
 
38
 
39
  def create_tts_fn(net_g_ms, speaker_id):
40
  def tts_fn(text, language, noise_scale, noise_scale_w, length_scale, is_symbol):
41
+ english, japanese = generate_response(llm, text)
42
  text = japanese.replace('\n', ' ').replace('\r', '').replace(" ", "")
43
  if limitation:
44
  text_len = len(re.sub("\[([A-Z]{2})\]", "", text))