Skip to content

Commit

Permalink
Update worker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRSatzteil authored Mar 10, 2024
1 parent e850106 commit a7eb108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mayanmindee/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def process_custom(document_id: int, document_type: str, synchronous: False) ->

for field_name, tag_mappings in required_fields.items():
try:
result = parsed_doc.document.inference.prediction.fields[field_name].contents_string()
result = parsed_doc.document.inference.prediction.fields[field_name].value
except:
result = parsed_doc.document.inference.prediction.classifications[field_name].value
if result:
Expand Down

0 comments on commit a7eb108

Please sign in to comment.