Commit e5d760fe authored by zhougaofeng's avatar zhougaofeng
Browse files

Update cut_image.py

parent 1e548892
...@@ -42,9 +42,6 @@ def ocr_cut_image_and_table(config_path,local_image_dir,spans, page, page_id, pd ...@@ -42,9 +42,6 @@ def ocr_cut_image_and_table(config_path,local_image_dir,spans, page, page_id, pd
client = PredictClient(url) client = PredictClient(url)
ocr_status = client.check_health() ocr_status = client.check_health()
pool = Pool(workers) pool = Pool(workers)
if not ocr_status:
logger.warning(f'Health check failed. The server at "{url}" is not responding as expected.')
logger.info(f'Qwen ocr解析服务无法正常运行,暂不使用qwen解析表格服务')
for span in spans: for span in spans:
span_type = span['type'] span_type = span['type']
......
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