From 818c956e6fcba516ee234a25bb17c54787d89742 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 31 Jan 2024 08:39:59 +0100 Subject: [PATCH] fixed events --- lollms/server/events/lollms_personality_events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lollms/server/events/lollms_personality_events.py b/lollms/server/events/lollms_personality_events.py index f3030ab..9750025 100644 --- a/lollms/server/events/lollms_personality_events.py +++ b/lollms/server/events/lollms_personality_events.py @@ -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