Skip to content

Commit

Permalink
fix: cover no source case
Browse files Browse the repository at this point in the history
  • Loading branch information
badGarnet committed Oct 18, 2024
1 parent c052187 commit 9c36d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured_inference/inference/layoutelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def concatenate(cls, groups: Iterable[LayoutElements]) -> LayoutElements:
element_probs=np.concatenate(probs),
element_class_ids=np.concatenate(class_ids),
element_class_id_map=class_id_map,
source=sources[0],
source=sources[0] if sources else None,
)

def as_list(self):
Expand Down

0 comments on commit 9c36d2a

Please sign in to comment.