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)
This commit is contained in:
KevinHuSh 2024-05-15 13:02:31 +08:00 committed by GitHub
parent d8c080ee52
commit 4d47b2b459
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -279,7 +279,7 @@ def main():
callback(-1, "Embedding error:{}".format(str(e))) callback(-1, "Embedding error:{}".format(str(e)))
cron_logger.error(str(e)) cron_logger.error(str(e))
tk_count = 0 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)) callback(msg="Finished embedding({:.2f})! Start to build index!".format(timer()-st))
init_kb(r) init_kb(r)