Commit 92785015 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update ocr_mkcontent.py

parent eb6926bd
...@@ -130,7 +130,7 @@ def ocr_mk_markdown_with_para_core_v2(config_path,paras_of_layout, ...@@ -130,7 +130,7 @@ def ocr_mk_markdown_with_para_core_v2(config_path,paras_of_layout,
url = config.get('server', 'ocr_server') url = config.get('server', 'ocr_server')
# logger.info(f'ocr_server:{url}') # logger.info(f'ocr_server:{url}')
client = PredictClient(url) client = PredictClient(url)
status = PredictClient.check_health() status = client.check_health()
if not status: if not status:
pdf_ocr = None pdf_ocr = None
logger.warning(f'Health check failed. The server at "{url}" is not responding as expected.') logger.warning(f'Health check failed. The server at "{url}" is not responding as expected.')
......
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