diff --git a/config.json b/config.json index 2298240..d523077 100644 --- a/config.json +++ b/config.json @@ -2,12 +2,9 @@ "name": "Export to Supervisely format", "type": "app", "version": "2.0.0", - "categories": [ - "images", - "export" - ], + "categories": ["images", "export"], "description": "images and JSON annotations", - "docker_image": "supervisely/import-export:6.73.128", + "docker_image": "supervisely/import-export:6.73.153", "instance_version": "6.10.0", "main_script": "src/main.py", "modal_template": "src/modal.html", @@ -21,10 +18,7 @@ "icon": "https://i.imgur.com/1hqGMyg.png", "icon_background": "#FFFFFF", "context_menu": { - "target": [ - "images_project", - "images_dataset" - ], + "target": ["images_project", "images_dataset"], "context_root": "Download as" }, "poster": "https://user-images.githubusercontent.com/106374579/186665737-ec3da9cc-193f-43ee-85db-a6f802b2dfe4.png" diff --git a/dev_requirements.txt b/dev_requirements.txt new file mode 100644 index 0000000..fc7199d --- /dev/null +++ b/dev_requirements.txt @@ -0,0 +1 @@ +supervisely==6.73.156 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 4326f54..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -# supervisely==6.73.128 - -git+https://github.com/supervisely/supervisely.git@add-workflow-compatibility-check diff --git a/src/workflow.py b/src/workflow.py index c06b7fc..52b32cf 100644 --- a/src/workflow.py +++ b/src/workflow.py @@ -22,7 +22,7 @@ def workflow_output(api: sly.Api, file: Union[int, sly.api.file_api.FileInfo]): url=f"/files/{file.id}/true/?teamId={file.team_id}", url_title="Download", ) - meta = sly.WorkflowMeta.create_as_dict(relation_settings=relation_settings) + meta = sly.WorkflowMeta(relation_settings=relation_settings) api.app.workflow.add_output_file(file, meta=meta) sly.logger.debug(f"Workflow: Output file - {file}") except Exception as e: