supervisely 6.73.303__py3-none-any.whl → 6.73.304__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of supervisely might be problematic. Click here for more details.

@@ -1275,6 +1275,7 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1275
1275
  raise TimeoutError(
1276
1276
  f"Task {task_info['id']} is not ready for API calls after {timeout} seconds."
1277
1277
  )
1278
+ logger.info("Deploying model from API")
1278
1279
  self.deploy_model_from_api(task_info["id"], deploy_params=deploy_params)
1279
1280
  return task_info
1280
1281
 
@@ -1286,7 +1287,7 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1286
1287
  checkpoint_name: str = None,
1287
1288
  agent_id: int = None,
1288
1289
  device: str = "cuda",
1289
- ):
1290
+ ) -> int:
1290
1291
  """
1291
1292
  Deploy a custom model based on the artifacts directory.
1292
1293
 
@@ -1473,7 +1474,7 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1473
1474
  logger.info(
1474
1475
  f"{serve_app_name} app deployment started. Checkpoint: '{checkpoint_name}'. Deploy params: '{deploy_params}'"
1475
1476
  )
1476
- self.deploy_model_app(
1477
+ task_info = self.deploy_model_app(
1477
1478
  module_id,
1478
1479
  workspace_id,
1479
1480
  agent_id,
@@ -1481,3 +1482,6 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1481
1482
  task_name=f"{serve_app_name} ({checkpoint_name})",
1482
1483
  deploy_params=deploy_params,
1483
1484
  )
1485
+ if task_info is None:
1486
+ raise RuntimeError(f"Failed to run '{serve_app_name}'.")
1487
+ return task_info["id"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.303
3
+ Version: 6.73.304
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -42,7 +42,7 @@ supervisely/api/remote_storage_api.py,sha256=qTuPhPsstgEjRm1g-ZInddik8BNC_38YvBB
42
42
  supervisely/api/report_api.py,sha256=Om7CGulUbQ4BuJ16eDtz7luLe0JQNqab-LoLpUXu7YE,7123
43
43
  supervisely/api/role_api.py,sha256=aBL4mxtn08LDPXQuS153-lQFN6N2kcwiz8MbescZ8Gk,3044
44
44
  supervisely/api/storage_api.py,sha256=FPGYf3Rn3LBoe38RBNdoiURs306oshzvKOEOQ56XAbs,13030
45
- supervisely/api/task_api.py,sha256=AizcgOA0kJNaDRbI6MW4w2GiJ4E99L48J3WcxyvQkM0,53435
45
+ supervisely/api/task_api.py,sha256=tRhHEvPQQa68nCrENNlgSCruVYDWYLdvvLD-1MGcicw,53632
46
46
  supervisely/api/team_api.py,sha256=bEoz3mrykvliLhKnzEy52vzdd_H8VBJCpxF-Bnek9Q8,19467
47
47
  supervisely/api/user_api.py,sha256=4S97yIc6AMTZCa0N57lzETnpIE8CeqClvCb6kjUkgfc,24940
48
48
  supervisely/api/video_annotation_tool_api.py,sha256=3A9-U8WJzrTShP_n9T8U01M9FzGYdeS51CCBTzUnooo,6686
@@ -1074,9 +1074,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1074
1074
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1075
1075
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1076
1076
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1077
- supervisely-6.73.303.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1078
- supervisely-6.73.303.dist-info/METADATA,sha256=lp4fEJgONs8gIgFKQhiqfctTQcgEzSH1MaDCSoro4RY,33573
1079
- supervisely-6.73.303.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1080
- supervisely-6.73.303.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1081
- supervisely-6.73.303.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1082
- supervisely-6.73.303.dist-info/RECORD,,
1077
+ supervisely-6.73.304.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1078
+ supervisely-6.73.304.dist-info/METADATA,sha256=5JZrJ5bK3MX8Ao9Aib0L9MaK9HipNOi0gGvq6P568Vc,33573
1079
+ supervisely-6.73.304.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1080
+ supervisely-6.73.304.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1081
+ supervisely-6.73.304.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1082
+ supervisely-6.73.304.dist-info/RECORD,,