Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docling_core/types/doc/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -5356,6 +5356,7 @@ def _add_text(
if tag_name == DocumentToken.CHART.value:
table_data = parse_otsl_table_content(full_chunk)
chart_type = extract_chart_type(full_chunk)
pic_title = chart_type if chart_type is not None else "other"
if image:
if bbox:
im_width, im_height = image.size
Expand Down Expand Up @@ -5391,7 +5392,6 @@ def _add_text(
)
pic.captions.append(caption.get_ref())

pic_title = "picture"
pic_classification = None
if chart_type is not None:
pic_classification = PictureClassificationMetaField(
Expand All @@ -5403,8 +5403,6 @@ def _add_text(
)
]
)
pic_title = chart_type

pic_tabular_chart = None
if table_data is not None:
pic_tabular_chart = TabularChartMetaField(
Expand Down
Loading