fix: Initialize imgs list in crop() fallback path
- Critical bug fix: imgs list was not initialized before use (line 439) - Without this fix, NameError would occur when cache miss triggers fallback - Discovered during reliability audit of MinerU image generation fix
This commit is contained in:
parent
31b466feed
commit
3bc3d82aa8
1 changed files with 1 additions and 0 deletions
|
|
@ -436,6 +436,7 @@ class MinerUParser(RAGFlowPdfParser):
|
|||
)
|
||||
|
||||
positions = []
|
||||
imgs = []
|
||||
for ii, (pns, left, right, top, bottom) in enumerate(poss):
|
||||
right = left + max_width
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue