Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

Update mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py

Xiaomeng Zhao80436a89f935
diff --git a/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py b/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
index bd34fd4d..7baec7ce 100644
--- a/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
+++ b/mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
@@ -1107,7 +1107,7 @@ class PPFormulaNet_Head(UniMERNetHead):
model_inputs = self.prepare_inputs_for_generation_export(
past_key_values=past_key_values, **model_kwargs
)
- decoder_attention_mask = torch.ones(input_ids.shape, device=self.device,)
+ decoder_attention_mask = torch.ones(input_ids.shape, device=self.device)
outputs = self.generate_single_iter(
decoder_input_ids=decoder_input_ids,