From 44aea43d1888c185c7023d4542e9f9070b19490b Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 16 Mar 2024 18:41:58 +0100 Subject: [PATCH] updated personality stuff --- lollms/server/events/lollms_personality_events.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lollms/server/events/lollms_personality_events.py b/lollms/server/events/lollms_personality_events.py index 52826dc..0316c26 100644 --- a/lollms/server/events/lollms_personality_events.py +++ b/lollms/server/events/lollms_personality_events.py @@ -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: