Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjoyo committed Apr 30, 2024
1 parent fc072a2 commit 5aa20f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bpm-ai/bpm_ai/decide/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ def raw_to_output_type(raw: str) -> Any:
else:
return raw

if multiple_decision_values:
if not classification:
result = None
elif multiple_decision_values:
result = [raw_to_output_type(label) for label, _ in classification.labels_scores]
else:
result = raw_to_output_type(classification.max_label)
Expand Down
2 changes: 1 addition & 1 deletion bpm-ai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bpm-ai"
version = "1.7.0"
version = "1.7.1"
description = "AI task automation for BPM engines."
authors = ["Bennet Krause <bennet.krause@holisticon.de>"]
repository = "https://github.com/holunda-io/bpm-ai"
Expand Down

0 comments on commit 5aa20f2

Please sign in to comment.