File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1019,7 +1019,7 @@ def upload_local_model(
1019
1019
repo_name : Union[str, dict], optional
1020
1020
repository in which to create the project
1021
1021
version: str, optional
1022
- The version of the model being uploaded
1022
+ The version of the model being uploaded. Defaults to 'latest'. For new model version, use 'new'.
1023
1023
"""
1024
1024
# Use default repository if not specified
1025
1025
try :
@@ -1058,7 +1058,8 @@ def upload_local_model(
1058
1058
data = {
1059
1059
"name" : model_name ,
1060
1060
"projectId" : p .id ,
1061
- "type" : "ASTORE" ,
1061
+ "type" : "ASTORE" ,
1062
+ "versionOption" : version
1062
1063
}
1063
1064
files = {"files" : (sasast_file .name , sasast_model )}
1064
1065
model = mr .post ("/models" , files = files , data = data )
You can’t perform that action at this time.
0 commit comments