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