fcyai commited on
Commit
f777ca5
·
1 Parent(s): 9f6255e
Files changed (1) hide show
  1. webui_mix.py +2 -2
webui_mix.py CHANGED
@@ -865,8 +865,8 @@ with gr.Blocks() as demo:
865
  refine_text_prompt = f"[oral_{orla}][laugh_{laugh}][break_{bk}]"
866
 
867
  # 按批次处理
868
- for batch_lines in batch(lines, batch_size):
869
- texts = [normalize_zh(line["txt"]) for line in batch_lines]
870
  print(f"seed={seed} t={texts} c={character} s={speed} r={refine_text_prompt}")
871
  wavs = generate_audio_for_seed(chat, int(seed), texts, DEFAULT_BATCH_SIZE, speed,
872
  refine_text_prompt, None, DEFAULT_TEMPERATURE, DEFAULT_TOP_P,
 
865
  refine_text_prompt = f"[oral_{orla}][laugh_{laugh}][break_{bk}]"
866
 
867
  # 按批次处理
868
+ for batch_lines in lines:#batch(lines, batch_size):
869
+ texts = [normalize_zh(line["txt"]) for line in [batch_lines]]
870
  print(f"seed={seed} t={texts} c={character} s={speed} r={refine_text_prompt}")
871
  wavs = generate_audio_for_seed(chat, int(seed), texts, DEFAULT_BATCH_SIZE, speed,
872
  refine_text_prompt, None, DEFAULT_TEMPERATURE, DEFAULT_TOP_P,