mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-20 13:13:16 +00:00
fixed events
This commit is contained in:
parent
35aa0e61bc
commit
818c956e6f
@ -62,12 +62,13 @@ def add_events(sio:socketio):
|
||||
file.write(chunk)
|
||||
|
||||
if is_last_chunk:
|
||||
print('File received and saved successfully')
|
||||
ASCIIColors.success('File received and saved successfully')
|
||||
if lollmsElfServer.personality.processor:
|
||||
result = lollmsElfServer.personality.processor.add_file(file_path, partial(lollmsElfServer.process_chunk, client_id=client_id))
|
||||
else:
|
||||
result = lollmsElfServer.personality.add_file(file_path, partial(lollmsElfServer.process_chunk, client_id=client_id))
|
||||
|
||||
ASCIIColors.success('File processed successfully')
|
||||
run_async(partial(sio.emit,'file_received', {'status': True, 'filename': filename}))
|
||||
else:
|
||||
# Request the next chunk from the client
|
||||
|
Loading…
Reference in New Issue
Block a user