Skip to content

Commit

Permalink
worker.py aktualisieren
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRSatzteil authored Jan 11, 2024
1 parent d355c90 commit 889fd5f
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 @@ -271,7 +271,7 @@ def process_custom(document_id: int, document_type: str, synchronous: False) ->
try:
result = parsed_doc.document.inference.prediction.fields[field_name].contents_string()
except:
parsed_doc.document.inference.prediction.classifications[field_name].value()
parsed_doc.document.inference.prediction.classifications[field_name].value
for metadata_mapping in metadata_mappings:
if "postprocess" in metadata_mapping[1]:
result = post_processing(
Expand All @@ -298,7 +298,7 @@ def process_custom(document_id: int, document_type: str, synchronous: False) ->
try:
result = parsed_doc.document.inference.prediction.fields[field_name].contents_string()
except:
parsed_doc.document.inference.prediction.classifications[field_name].value()
parsed_doc.document.inference.prediction.classifications[field_name].value
if result:
for tag_mapping in tag_mappings:
if is_similar(
Expand Down

0 comments on commit 889fd5f

Please sign in to comment.