mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-06 23:15:53 +08:00
update webui.py
This commit is contained in:
parent
fbdc62d910
commit
02fecb8c53
2
webui.py
2
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)):
|
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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user