update webui.py

This commit is contained in:
imClumsyPanda 2023-04-22 16:53:04 +08:00
parent 0706a29057
commit 5a7973ea42
1 changed files with 2 additions and 2 deletions

View File

@ -17,10 +17,10 @@ LLM_HISTORY_LEN = 3
def get_vs_list(): def get_vs_list():
if not os.path.exists(VS_ROOT_PATH): if not os.path.exists(VS_ROOT_PATH):
return [] return []
return ["新建知识库"] + os.listdir(VS_ROOT_PATH) return os.listdir(VS_ROOT_PATH)
vs_list = get_vs_list() vs_list = ["新建知识库"] + get_vs_list()
embedding_model_dict_list = list(embedding_model_dict.keys()) embedding_model_dict_list = list(embedding_model_dict.keys())