mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Refactor:naive_merge_with_images close useless images (#9296)
### What problem does this PR solve? naive_merge_with_images close useless images ### Type of change - [x] Refactoring
This commit is contained in:
@ -612,6 +612,10 @@ def naive_merge_with_images(texts, images, chunk_token_num=128, delimiter="\n。
|
||||
continue
|
||||
add_chunk(sub_sec, image)
|
||||
|
||||
for img in images:
|
||||
if isinstance(img, Image.Image):
|
||||
img.close()
|
||||
|
||||
return cks, result_images
|
||||
|
||||
def docx_question_level(p, bull=-1):
|
||||
|
||||
Reference in New Issue
Block a user