mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-08 07:49:59 +08:00
Merge 746b19bedb0bb09de54fd0beb86c082cae6c2a92 into 35e755427da174037da246642cab6987876c74fa
This commit is contained in:
commit
58f38ab9af
4
webui.py
4
webui.py
@ -410,10 +410,14 @@ def open1a(inp_text,inp_wav_dir,exp_name,gpu_numbers,bert_pretrained_dir):
|
||||
p.wait()
|
||||
opt = []
|
||||
for i_part in range(all_parts):
|
||||
try:
|
||||
txt_path = "%s/2-name2text-%s.txt" % (opt_dir, i_part)
|
||||
with open(txt_path, "r", encoding="utf8") as f:
|
||||
opt += f.read().strip("\n").split("\n")
|
||||
os.remove(txt_path)
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
pass
|
||||
path_text = "%s/2-name2text.txt" % opt_dir
|
||||
with open(path_text, "w", encoding="utf8") as f:
|
||||
f.write("\n".join(opt) + "\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user