Skip to content

Commit b62b474

Browse files
author
Ziqun Ye
committed
pass stream to create_model_artifact
1 parent 3466cd5 commit b62b474

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

model_catalog_examples/notebook_examples/uploading_larger_artifact_oci_python_sdk.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@
145145
"outputs": [],
146146
"source": [
147147
"with open(artifact_path,'rb') as artifact_file:\n",
148-
" artifact_bytes = artifact_file.read()\n",
149148
" data_science.create_model_artifact(model_id,\n",
150-
" artifact_bytes,\n",
149+
" artifact_file,\n",
151150
" content_disposition='attachment; filename=\"{artifact_path}\"')"
152151
]
153152
},

0 commit comments

Comments
 (0)