Skip to content

Commit

Permalink
Update worker.py
Browse files Browse the repository at this point in the history
Removed value
  • Loading branch information
DrRSatzteil authored Jan 7, 2024
1 parent 31ecb76 commit 8d36960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mayanmindee/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def process_standard(document_id: int, document_type: str) -> None:
)

for field_name, metadata_mappings in required_fields.items():
result = getattritem(parsed_doc.document.inference.prediction, field_name).value
result = getattritem(parsed_doc.document.inference.prediction, field_name)
for metadata_mapping in metadata_mappings:
if "postprocess" in metadata_mapping[1]:
result = post_processing(
Expand All @@ -222,7 +222,7 @@ def process_standard(document_id: int, document_type: str) -> None:
)

for field_name, tag_mappings in required_fields.items():
result = getattritem(parsed_doc.document.inference.prediction, field_name).value
result = getattritem(parsed_doc.document.inference.prediction, field_name)
if result:
for tag_mapping in tag_mappings:
if is_similar(
Expand Down

0 comments on commit 8d36960

Please sign in to comment.