From 02fecb8c53748986ba258c11ccedb93b79cc5bfb Mon Sep 17 00:00:00 2001 From: imClumsyPanda Date: Wed, 10 May 2023 18:23:04 +0800 Subject: [PATCH] update webui.py --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index 3788a184..f8fc9683 100644 --- a/webui.py +++ b/webui.py @@ -114,7 +114,7 @@ def get_vector_store(vs_id, files, sentence_size, history, one_conent, one_conte if not os.path.exists(os.path.join(UPLOAD_ROOT_PATH, vs_id)): os.makedirs(os.path.join(UPLOAD_ROOT_PATH, vs_id)) if local_doc_qa.llm and local_doc_qa.embeddings: - if isinstance(files, list) and one_conent is None: + if isinstance(files, list): for file in files: filename = os.path.split(file.name)[-1] shutil.move(file.name, os.path.join(UPLOAD_ROOT_PATH, vs_id, filename))