Skip to content

Commit d02925e

Browse files
committed
adjust comments and print messages
1 parent a0cd6c6 commit d02925e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roboflow/core/workspace.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def _upload_zip(
610610
model_name: str,
611611
model_file_name: str,
612612
):
613-
# TODO: Need to create this endpoint
613+
# This endpoint returns a signed URL to upload the model
614614
res = requests.post(
615615
f"{API_URL}/{self.url}/uploadModel?api_key={self.__api_key}&modelType={model_type}&modelName={model_name}&projectIds={','.join(project_ids)}&nocache=true"
616616
)
@@ -628,8 +628,11 @@ def _upload_zip(
628628
try:
629629
res.raise_for_status()
630630

631-
# TODO: Need to check this URL
632-
print("View the status of your deployment at:" f" {APP_URL}/{self.url}/models")
631+
for project_id in project_ids:
632+
print(
633+
f"View the status of your deployment for project {project_id} at:"
634+
f" {APP_URL}/{self.url}/{project_id}/models"
635+
)
633636

634637
except Exception as e:
635638
print(f"An error occured when uploading the model: {e}")

0 commit comments

Comments
 (0)