Update demo_page_hf.py

This commit is contained in:
Hao Feng
2025-07-01 15:34:02 +08:00
committed by GitHub
parent 58a727a9c0
commit 7717189fee

View File

@@ -205,7 +205,6 @@ def process_elements(layout_results, padded_image, dims, model, max_batch_size,
if label == "fig":
pil_crop = Image.fromarray(cv2.cvtColor(cropped, cv2.COLOR_BGR2RGB))
# 修改保存figure到本地文件而不是base64
figure_filename = save_figure_to_local(pil_crop, save_dir, image_name, reading_order)
# For figure regions, store relative path instead of base64