From d7595cc783e3e383d34de828aa39b0214b682bda Mon Sep 17 00:00:00 2001 From: XXXXRT666 Date: Tue, 6 Aug 2024 17:38:21 +0800 Subject: [PATCH] fix bug --- webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index 0506e135..2a7b5d37 100644 --- a/webui.py +++ b/webui.py @@ -403,12 +403,12 @@ def open_slice(inp,opt_root,threshold,min_length,min_interval,hop_size,max_sil_k opt_root = my_utils.clean_path(opt_root) check_for_exists([inp]) if(os.path.exists(inp)==False): - yield "输入路径不存在", {"__type__":"update","visible":True}, {"__type__":"update","visible":False}, {"__type__": "update"}, {"__type__": "update"} + yield "输入路径不存在", {"__type__":"update","visible":True}, {"__type__":"update","visible":False}, {"__type__": "update"}, {"__type__": "update"}, {"__type__": "update"} return if os.path.isfile(inp):n_parts=1 elif os.path.isdir(inp):pass else: - yield "输入路径存在但既不是文件也不是文件夹", {"__type__":"update","visible":True}, {"__type__":"update","visible":False}, {"__type__": "update"}, {"__type__": "update"} + yield "输入路径存在但既不是文件也不是文件夹", {"__type__":"update","visible":True}, {"__type__":"update","visible":False}, {"__type__": "update"}, {"__type__": "update"}, {"__type__": "update"} return if (ps_slice == []): for i_part in range(n_parts):