Skip to content

Commit

Permalink
modify the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wanghanying committed Dec 11, 2024
1 parent d3c7246 commit cb877f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/convert_to_bizyair.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_trans_format(inputs: dict):
return "workflow_api"


def workflow_convert(inputs: dict, status):
def workflow_convert(inputs: dict):
nodes = inputs["nodes"]
for node in nodes:
class_type = node["type"]
Expand Down Expand Up @@ -156,9 +156,8 @@ def workflow_convert(inputs: dict, status):
"is_converted": is_converted,
}
)
assert is_converted == True

return (inputs, status)
return inputs


def workflow_api_convert(inputs: dict):
Expand All @@ -180,7 +179,6 @@ def workflow_api_convert(inputs: dict):
"is_converted": is_converted,
}
)
assert is_converted == True

return inputs

Expand Down

0 comments on commit cb877f0

Please sign in to comment.