fix var local

This commit is contained in:
jax 2024-02-18 14:14:04 +08:00
parent 280d5c617d
commit b4aaa221a8
2 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,6 @@ def change_choices():
p_label=None
p_uvr5=None
p_asr=None
p_tts_inference=None
def kill_proc_tree(pid, including_parent=True):
try:

View File

@ -8,6 +8,7 @@ from tools.asr.config import asr_dict
from config import python_exec,infer_device,is_half,exp_root,webui_port_main,webui_port_infer_tts,webui_port_uvr5,webui_port_subfix,is_share
from subprocess import Popen
p_tts_inference=None
def change_tts_inference(if_tts,bert_path,cnhubert_base_path,gpu_number,gpt_path,sovits_path):
global p_tts_inference
if(if_tts==True and p_tts_inference==None):