Skip to content

Commit

Permalink
Return correct job for model statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiebke committed Apr 2, 2024
1 parent cfb5e8e commit e0074bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions callbacks/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def populate_segmentation_results(
ANNOT_ICONS["results"],
f"Could not retrieve result from {job_type} job!",
)
return notification, None, job_id
return notification, None, children_flows[0]
result_metadata = result_container.metadata
if result_metadata["data_uri"] == data_uri:
result_store = {
Expand All @@ -438,7 +438,8 @@ def populate_segmentation_results(
ANNOT_ICONS["results"],
f"Retrieved result from {job_type} job!",
)
return notification, result_store, job_id

return notification, result_store, children_flows[0]
else:
return no_update, None, None
return no_update, no_update, None
Expand Down

0 comments on commit e0074bb

Please sign in to comment.