Skip to content

Commit

Permalink
worker.py aktualisieren
Browse files Browse the repository at this point in the history
Here?
  • Loading branch information
DrRSatzteil authored Jan 5, 2024
1 parent 682e3e3 commit 6235b30
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 @@ -276,7 +276,7 @@ def process_custom(document_id: int, document_type: str) -> None:
)

for field_name, metadata_mappings in required_fields.items():
result = parsed_doc.prediction.fields[field_name].contents_string()
result = parsed_doc.document.prediction.fields[field_name].contents_string()
for metadata_mapping in metadata_mappings:
if "postprocess" in metadata_mapping[1]:
result = post_processing(
Expand Down

0 comments on commit 6235b30

Please sign in to comment.