diff --git a/src/workflow.py b/src/workflow.py index 73d20b6..31cdd4d 100644 --- a/src/workflow.py +++ b/src/workflow.py @@ -1,26 +1,29 @@ # This module contains the functions that are used to configure the input and output of the workflow for the current app. -import supervisely as sly from typing import Union +import supervisely as sly + + def workflow_input(api: sly.Api, project_id: int): api.app.workflow.add_input_project(project_id) sly.logger.debug(f"Workflow: Input project - {project_id}") + def workflow_output(api: sly.Api, file: Union[int, sly.api.file_api.FileInfo]): try: if isinstance(file, int): file = api.file.get_info_by_id(file) - meta = {"customRelationSettings": { - "icon": { - "icon": "zmdi-archive", - "color": "#33c94c", - "backgroundColor": "#d9f7e4" - }, - "title": f"