"examples/trials/vscode:/vscode.git/clone" did not exist on "f7d69d8f0404c14cfed853c738fc99cc1f2d1672"
Commit 5d5d72b1 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update common_parse.py

parent 63971f9c
...@@ -45,7 +45,7 @@ def process_file(file_path, pdf_ocr, excel_ocr, output_dir): ...@@ -45,7 +45,7 @@ def process_file(file_path, pdf_ocr, excel_ocr, output_dir):
res = excel_ocr.parse(file_path, output_dir) res = excel_ocr.parse(file_path, output_dir)
end = time.time() end = time.time()
if res: if res:
logger.info(f"文件处理成功,输出文件路径为: '{res}', 耗时为:{end-start}") logger.info(f"文件处理成功,输出文件路径为: '{res}', 耗时为:{round(end-start,2)}")
else: else:
logger.warning(f"文件处理结果为空: '{file_path}'") logger.warning(f"文件处理结果为空: '{file_path}'")
except requests.exceptions.RequestException as req_err: except requests.exceptions.RequestException as req_err:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment