enhanced ui

This commit is contained in:
Saifeddine ALOUI 2024-06-30 02:39:13 +02:00
parent 10edf07e3c
commit 367111bab7

View File

@ -165,7 +165,6 @@ def select_rag_database(client) -> Optional[Dict[str, Path]]:
print(f"Failed to add document {fn}: {e}") print(f"Failed to add document {fn}: {e}")
if vdb.new_data: #New files are added, need reindexing if vdb.new_data: #New files are added, need reindexing
lollmsElfServer.ShowBlockingMessage(f"Adding a new database.\nIndexing the database...") lollmsElfServer.ShowBlockingMessage(f"Adding a new database.\nIndexing the database...")
ASCIIColors.blue("Indexing database ...", end="", flush=True)
vdb.build_index() vdb.build_index()
ASCIIColors.success("OK") ASCIIColors.success("OK")
lollmsElfServer.HideBlockingMessage() lollmsElfServer.HideBlockingMessage()