upgraded to v 9.3

This commit is contained in:
Saifeddine ALOUI 2024-02-26 08:56:42 +01:00
parent 5b6b39be98
commit 380915da8f
4 changed files with 5 additions and 4 deletions

View File

@ -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:

@ -1 +1 @@
Subproject commit 01aeada6a3f051346202c552140a9462ea4b9beb
Subproject commit ac5d2b6df038f6eee03cfae351a753221b819ad5

View File

@ -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

@ -1 +1 @@
Subproject commit ba3ef9d582efb1d32b7e5c18cd386fc376ebcdc9
Subproject commit 2781a834971fa5af6ec6b2fd181084c5ea4bd511