From 4d47b2b459b5131001700c5a1846dc2fd4d20c92 Mon Sep 17 00:00:00 2001 From: KevinHuSh Date: Wed, 15 May 2024 13:02:31 +0800 Subject: [PATCH] fix a string format error (#781) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/svr/task_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/svr/task_executor.py b/rag/svr/task_executor.py index 62e8f905e..700a30aae 100644 --- a/rag/svr/task_executor.py +++ b/rag/svr/task_executor.py @@ -279,7 +279,7 @@ def main(): callback(-1, "Embedding error:{}".format(str(e))) cron_logger.error(str(e)) tk_count = 0 - cron_logger.info("Embedding elapsed({:.2f}): {}".format(r["name"], timer()-st)) + cron_logger.info("Embedding elapsed({}): {:.2f}".format(r["name"], timer()-st)) callback(msg="Finished embedding({:.2f})! Start to build index!".format(timer()-st)) init_kb(r)