fix: use image_data_list before assign

This commit is contained in:
wizardchen
2025-08-20 22:42:37 +08:00
committed by lyingbug
parent a5840661a9
commit d801112f5f
+1 -1
View File
@@ -1193,10 +1193,10 @@ def process_page_multiprocess(
# Process content sequence to maintain order between processes
processed_content = []
temp_image_index = 0
image_data_list = []
if enable_multimodal:
# First pass: save all images to temporary files
image_data_list = []
for i, image_object in enumerate(image_objects):
img_path = _save_image_to_temp(process_logger, image_object, page_num, i)
if img_path: