mirror of
https://github.com/VikParuchuri/surya.git
synced 2026-06-04 21:03:53 +08:00
Avoid truncating layout and table
This commit is contained in:
parent
f2eecf1ad1
commit
14e7ee6ed9
@ -819,6 +819,11 @@ class FoundationPredictor(BasePredictor):
|
||||
] or (
|
||||
drop_repeated_tokens
|
||||
and detect_repeat_token(predicted_tokens[p_idx])
|
||||
and task_names[p_idx]
|
||||
in [
|
||||
TaskNames.ocr_with_boxes,
|
||||
TaskNames.ocr_without_boxes,
|
||||
]
|
||||
)
|
||||
if (
|
||||
token
|
||||
|
||||
Loading…
Reference in New Issue
Block a user