File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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 } " )
You can’t perform that action at this time.
0 commit comments