Skip to content

Commit

Permalink
Fixed error when getting dictionary options
Browse files Browse the repository at this point in the history
  • Loading branch information
konzz committed Apr 26, 2024
1 parent 8ed46e0 commit 243dd09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ async def get_suggestions(tenant: str, extractor_id: str):
id=extractor_id,
xml_file_name=prediction_data["xml_file_name"],
entity_name=prediction_data["entity_name"],
text="2023" if not values else ' '.join([option.label for option in values]),
text="2023" if not values else ' '.join([option["label"] for option in values]),
values=values,
segment_text="2023" if not values else ' '.join([option.label for option in values]),
segment_text="2023" if not values else ' '.join([option["label"] for option in values]),
page_number=1,
segments_boxes=[SegmentBox(left=0, top=0, width=250, height=250, page_number=1)],
).dict()
Expand Down

0 comments on commit 243dd09

Please sign in to comment.