-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Labels
bugSomething isn't workingSomething isn't working
Description
In
docling-core/docling_core/types/doc/document.py
Line 4046 in 062124e
| chart_data=table_data, title=pic_title |
we get the error of
local variable 'pic_title' referenced before assignment, since pic_title is not defined in outer block.
which is defined and used in the previous if block as below
docling-core/docling_core/types/doc/document.py
Lines 3990 to 4003 in 062124e
| pic_title = "picture" | |
| if chart_type is not None: | |
| pic.annotations.append( | |
| PictureClassificationData( | |
| provenance="load_from_doctags", | |
| predicted_classes=[ | |
| # chart_type | |
| PictureClassificationClass( | |
| class_name=chart_type, confidence=1.0 | |
| ) | |
| ], | |
| ) | |
| ) | |
| pic_title = chart_type |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working