mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-29 15:44:12 +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):
|
||||
file = request.files['file']
|
||||
Path("uploads").mkdir(exist_ok=True, parents=True)
|
||||
file.save('uploads/' + file.filename)
|
||||
file.save(self.lollms_paths.personal_uploads_path / file.filename)
|
||||
if self.personality.processor:
|
||||
self.personality.processor.add_file(self.lollms_paths.personal_uploads_path / file.filename)
|
||||
return jsonify({"status": True})
|
||||
|
||||
def upload_model(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user