supervisely 6.73.303__py3-none-any.whl → 6.73.305__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,18 +1275,18 @@ 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
 
1281
1282
  def deploy_custom_model(
1282
1283
  self,
1283
- team_id: int,
1284
1284
  workspace_id: int,
1285
1285
  artifacts_dir: str,
1286
1286
  checkpoint_name: str = None,
1287
1287
  agent_id: int = None,
1288
1288
  device: str = "cuda",
1289
- ):
1289
+ ) -> int:
1290
1290
  """
1291
1291
  Deploy a custom model based on the artifacts directory.
1292
1292
 
@@ -1473,7 +1473,7 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1473
1473
  logger.info(
1474
1474
  f"{serve_app_name} app deployment started. Checkpoint: '{checkpoint_name}'. Deploy params: '{deploy_params}'"
1475
1475
  )
1476
- self.deploy_model_app(
1476
+ task_info = self.deploy_model_app(
1477
1477
  module_id,
1478
1478
  workspace_id,
1479
1479
  agent_id,
@@ -1481,3 +1481,6 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1481
1481
  task_name=f"{serve_app_name} ({checkpoint_name})",
1482
1482
  deploy_params=deploy_params,
1483
1483
  )
1484
+ if task_info is None:
1485
+ raise RuntimeError(f"Failed to run '{serve_app_name}'.")
1486
+ 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.305
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=iaP5v0WrVJFjdmoIuBBk___7kS57fxgmhjByZX7ZSHo,53610
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.305.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1078
+ supervisely-6.73.305.dist-info/METADATA,sha256=shsy_XeVHlxZo_9oE0WGUDjT-AHdGnrSZxs8aA_ru9Q,33573
1079
+ supervisely-6.73.305.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1080
+ supervisely-6.73.305.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1081
+ supervisely-6.73.305.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1082
+ supervisely-6.73.305.dist-info/RECORD,,