mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-06 10:59:23 +00:00
updated
This commit is contained in:
parent
e8c7baaf69
commit
805925a710
5
app.py
5
app.py
@ -1078,8 +1078,9 @@ class LoLLMsWebUI(LoLLMsAPPI):
|
|||||||
|
|
||||||
def send_file(self):
|
def send_file(self):
|
||||||
file = request.files['file']
|
file = request.files['file']
|
||||||
Path("uploads").mkdir(exist_ok=True, parents=True)
|
file.save(self.lollms_paths.personal_uploads_path / file.filename)
|
||||||
file.save('uploads/' + file.filename)
|
if self.personality.processor:
|
||||||
|
self.personality.processor.add_file(self.lollms_paths.personal_uploads_path / file.filename)
|
||||||
return jsonify({"status": True})
|
return jsonify({"status": True})
|
||||||
|
|
||||||
def upload_model(self):
|
def upload_model(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user