提交 02fecb8c 作者: imClumsyPanda

update webui.py

上级 fbdc62d9
...@@ -114,7 +114,7 @@ def get_vector_store(vs_id, files, sentence_size, history, one_conent, one_conte ...@@ -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)): if not os.path.exists(os.path.join(UPLOAD_ROOT_PATH, vs_id)):
os.makedirs(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 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: for file in files:
filename = os.path.split(file.name)[-1] filename = os.path.split(file.name)[-1]
shutil.move(file.name, os.path.join(UPLOAD_ROOT_PATH, vs_id, filename)) shutil.move(file.name, os.path.join(UPLOAD_ROOT_PATH, vs_id, filename))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论