updated web links adding

This commit is contained in:
Saifeddine ALOUI 2024-07-03 21:39:50 +02:00
parent abeb63759b
commit bbfb339699
2 changed files with 2 additions and 6 deletions

View File

@ -144,11 +144,7 @@ async def add_webpage(request: AddWebPageRequest):
raise HTTPException(status_code=400, detail=f"Exception : {e}") raise HTTPException(status_code=400, detail=f"Exception : {e}")
try: try:
if not lollmsElfServer.personality.processor is None: client.discussion.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
lollmsElfServer.personality.processor.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
# File saved successfully
else:
lollmsElfServer.personality.add_file(file_path, client, partial(lollmsElfServer.process_chunk, client_id = request.client_id))
# File saved successfully # File saved successfully
lollmsElfServer.HideBlockingMessage() lollmsElfServer.HideBlockingMessage()
lollmsElfServer.refresh_files() lollmsElfServer.refresh_files()

@ -1 +1 @@
Subproject commit f991f3f585be4904bba822301bc01eeb94d771f1 Subproject commit 7d1ff76edd35e8d2188fcdba3c9caa406ff84521