Fix: match MinerU content types using checking string literals
This commit is contained in:
parent
136d43b0fa
commit
0d298cd5c9
1 changed files with 1 additions and 1 deletions
|
|
@ -849,7 +849,7 @@ class MinerUParser(RAGFlowPdfParser):
|
|||
return
|
||||
img_root = subdir / "generated_images"
|
||||
img_root.mkdir(parents=True, exist_ok=True)
|
||||
text_types = {MinerUContentType.TEXT, MinerUContentType.LIST, MinerUContentType.CODE, MinerUContentType.HEADER}
|
||||
text_types = {"text", "list", "code", "header"}
|
||||
generated = 0
|
||||
for idx, item in enumerate(outputs):
|
||||
if item.get("type") not in text_types:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue