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 97f1f3b commit e850106
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 @@ -269,7 +269,7 @@ def process_custom(document_id: int, document_type: str, synchronous: False) ->

for field_name, metadata_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
for metadata_mapping in metadata_mappings:
Expand Down

0 comments on commit e850106

Please sign in to comment.