Skip to content

Commit

Permalink
Refactor message output format (infiniflow#772)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
  • Loading branch information
JinHai-CN committed May 15, 2024
1 parent 6b06cce commit 77b1520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rag/svr/task_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def main():
tk_count = 0
cron_logger.info("Embedding elapsed({}): {}".format(r["name"], timer()-st))

callback(msg="Finished embedding({})! Start to build index!".format(timer()-st))
callback(msg="Finished embedding({:.2f})! Start to build index!".format(timer()-st))
init_kb(r)
chunk_count = len(set([c["_id"] for c in cks]))
st = timer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const PopoverContent = ({ record }: IProps) => {
{
key: 'process_duation',
label: t('processDuration'),
children: `${record.process_duation} s`,
children: `${record.process_duation.toFixed(2)} s`,
},
{
key: 'progress_msg',
Expand Down

0 comments on commit 77b1520

Please sign in to comment.