From 8e7f6502ef0674f9fba8877ce750bf46ecf0d332 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 19 Jun 2024 03:04:21 +0200 Subject: [PATCH] fix --- lollms/server/endpoints/lollms_file_system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lollms/server/endpoints/lollms_file_system.py b/lollms/server/endpoints/lollms_file_system.py index 6ef1378..c129192 100644 --- a/lollms/server/endpoints/lollms_file_system.py +++ b/lollms/server/endpoints/lollms_file_system.py @@ -163,7 +163,8 @@ def select_rag_database(client) -> Optional[Dict[str, Path]]: vdb.build_index() ASCIIColors.success("OK") lollmsElfServer.HideBlockingMessage() - run_async(partial(lollmsElfServer.sio.emit,'rag_db_added ', {"database_name": db_name, "database_path": Path(folder_path)}, to=client.client_id)) + run_async(partial(lollmsElfServer.sio.emit,'rag_db_added', {"database_name": db_name, "database_path": str(folder_path)}, to=client.client_id)) + except Exception as ex: trace_exception(ex) lollmsElfServer.HideBlockingMessage()