mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-29 15:44:12 +00:00
upgraded to v 9.3
This commit is contained in:
parent
5b6b39be98
commit
380915da8f
@ -68,13 +68,14 @@ def add_events(sio:socketio):
|
|||||||
@sio.on('add_webpage')
|
@sio.on('add_webpage')
|
||||||
def add_webpage(sid, data):
|
def add_webpage(sid, data):
|
||||||
ASCIIColors.yellow("Scaping web page")
|
ASCIIColors.yellow("Scaping web page")
|
||||||
|
client = lollmsElfServer.session.get_client(sid)
|
||||||
url = data['url']
|
url = data['url']
|
||||||
index = find_first_available_file_index(lollmsElfServer.lollms_paths.personal_uploads_path,"web_",".txt")
|
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"
|
file_path=lollmsElfServer.lollms_paths.personal_uploads_path/f"web_{index}.txt"
|
||||||
lollmsElfServer.scrape_and_save(url=url, file_path=file_path)
|
lollmsElfServer.scrape_and_save(url=url, file_path=file_path)
|
||||||
try:
|
try:
|
||||||
if not lollmsElfServer.personality.processor is None:
|
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
|
# File saved successfully
|
||||||
run_async(partial(sio.emit,'web_page_added', {'status':True,}))
|
run_async(partial(sio.emit,'web_page_added', {'status':True,}))
|
||||||
else:
|
else:
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 01aeada6a3f051346202c552140a9462ea4b9beb
|
Subproject commit ac5d2b6df038f6eee03cfae351a753221b819ad5
|
@ -978,7 +978,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
|||||||
ASCIIColors.info("Running workflow")
|
ASCIIColors.info("Running workflow")
|
||||||
try:
|
try:
|
||||||
self.personality.callback = callback
|
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:
|
except Exception as ex:
|
||||||
trace_exception(ex)
|
trace_exception(ex)
|
||||||
# Catch the exception and get the traceback as a list of strings
|
# Catch the exception and get the traceback as a list of strings
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit ba3ef9d582efb1d32b7e5c18cd386fc376ebcdc9
|
Subproject commit 2781a834971fa5af6ec6b2fd181084c5ea4bd511
|
Loading…
x
Reference in New Issue
Block a user