mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-20 11:39:11 +00:00
updated personality stuff
This commit is contained in:
parent
4a70abd9b3
commit
44aea43d18
@ -86,7 +86,7 @@ def add_events(sio:socketio):
|
||||
|
||||
try:
|
||||
if chunk_index==0:
|
||||
lollmsElfServer.ShowBlockingMessage(f"Importing File {file_path.name}")
|
||||
lollmsElfServer.ShowBlockingMessage(f"Receiving File {file_path.name}")
|
||||
with open(file_path, 'wb') as file:
|
||||
file.write(chunk)
|
||||
else:
|
||||
@ -99,6 +99,8 @@ def add_events(sio:socketio):
|
||||
|
||||
if is_last_chunk:
|
||||
lollmsElfServer.success('File received and saved successfully')
|
||||
lollmsElfServer.ShowBlockingMessage(f"File received {file_path.name}.\nProcessing ...")
|
||||
|
||||
if lollmsElfServer.personality.processor:
|
||||
result = lollmsElfServer.personality.processor.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id=client_id))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user