Skip to content

Commit 805111f

Browse files
committed
ODSC-38627: fix the comments
1 parent fba684e commit 805111f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/source/user_guide/model_registration/frameworks/huggingfacemodel.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,20 @@ Example
203203
## Initiate a HuggingFacePipelineModel instance
204204
zero_shot_image_classification_model = HuggingFacePipelineModel(classifier, artifact_dir=empfile.mkdtemp())
205205
206-
## Prepare a model artifact
207-
conda = "oci://bucket@namespace/path/to/conda/pack"
208-
python_version = "3.8"
209-
zero_shot_image_classification_model.prepare(inference_conda_env=conda, inference_python_version = python_version, force_overwrite=True)
206+
# Autogenerate score.py, serialized model, runtime.yaml
207+
conda_pack_path = "oci://bucket@namespace/path/to/conda/pack"
208+
python_version = "3.x"
209+
zero_shot_image_classification_model.prepare(inference_conda_env=conda_pack_path, inference_python_version = python_version, force_overwrite=True)
210210
211211
## Test data
212212
data = {"images": image, "candidate_labels": ["animals", "humans", "landscape"]}
213213
body = cloudpickle.dumps(data) # convert image to bytes
214214
215-
## Verify
215+
# Verify generated artifacts
216216
zero_shot_image_classification_model.verify(data=data)
217217
zero_shot_image_classification_model.verify(data=body)
218218
219-
## Save
219+
# Register HuggingFace Pipeline model
220220
zero_shot_image_classification_model.save()
221221
222222
## Deploy

0 commit comments

Comments
 (0)