Skip to content

Commit

Permalink
add parent level property (#1782)
Browse files Browse the repository at this point in the history
Co-authored-by: Chao Qian <[email protected]>
  • Loading branch information
chaoqian and Chao Qian authored Nov 17, 2023
1 parent 59eab13 commit 03fc285
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,12 @@ def register_model(
"be sure they are properly formatted."
)

request_url = get_modelregistry_url(workspace)
intellectualProperty = {
"publisher": "nopublisher"
}
intellectualProperty = json.loads(json.dumps(intellectualProperty))

request_url = get_modelregistry_url(workspace)
request_body = {
"name": model_name,
"description": description,
Expand All @@ -221,6 +225,7 @@ def register_model(
"properties": properties,
"kvTags": tags,
"modelFormat": model_format,
"intellectualProperty": intellectualProperty
}

use_auto_version = model_version is None
Expand Down

0 comments on commit 03fc285

Please sign in to comment.