diff --git a/events/lollms_chatbox_events.py b/events/lollms_chatbox_events.py index 4952f3c6..49041977 100644 --- a/events/lollms_chatbox_events.py +++ b/events/lollms_chatbox_events.py @@ -68,13 +68,14 @@ def add_events(sio:socketio): @sio.on('add_webpage') def add_webpage(sid, data): ASCIIColors.yellow("Scaping web page") + client = lollmsElfServer.session.get_client(sid) url = data['url'] index = find_first_available_file_index(lollmsElfServer.lollms_paths.personal_uploads_path,"web_",".txt") file_path=lollmsElfServer.lollms_paths.personal_uploads_path/f"web_{index}.txt" lollmsElfServer.scrape_and_save(url=url, file_path=file_path) try: if not lollmsElfServer.personality.processor is None: - lollmsElfServer.personality.processor.add_file(file_path, partial(lollmsElfServer.process_chunk, client_id = sid)) + lollmsElfServer.personality.processor.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = sid)) # File saved successfully run_async(partial(sio.emit,'web_page_added', {'status':True,})) else: diff --git a/lollms_core b/lollms_core index 01aeada6..ac5d2b6d 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 01aeada6a3f051346202c552140a9462ea4b9beb +Subproject commit ac5d2b6df038f6eee03cfae351a753221b819ad5 diff --git a/lollms_webui.py b/lollms_webui.py index bc798eaf..9bd15480 100644 --- a/lollms_webui.py +++ b/lollms_webui.py @@ -978,7 +978,7 @@ class LOLLMSWebUI(LOLLMSElfServer): ASCIIColors.info("Running workflow") try: self.personality.callback = callback - self.personality.processor.run_workflow( prompt, full_prompt, callback, context_details) + self.personality.processor.run_workflow(prompt, full_prompt, callback, context_details) except Exception as ex: trace_exception(ex) # Catch the exception and get the traceback as a list of strings diff --git a/zoos/personalities_zoo b/zoos/personalities_zoo index ba3ef9d5..2781a834 160000 --- a/zoos/personalities_zoo +++ b/zoos/personalities_zoo @@ -1 +1 @@ -Subproject commit ba3ef9d582efb1d32b7e5c18cd386fc376ebcdc9 +Subproject commit 2781a834971fa5af6ec6b2fd181084c5ea4bd511