Skip to content

Commit 1c3969f

Browse files
author
Ziqun Ye
committed
remove the comments out
1 parent 8c1f5b1 commit 1c3969f

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

ads/opctl/backend/ads_model_deployment.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,3 @@ def predict(self) -> None:
180180
model_deployment = ModelDeployment.from_id(ocid)
181181
data = json.loads(data)
182182
print(model_deployment.predict(data))
183-
# elif "datasciencemodel":
184-
# with AuthContext(auth=self.auth_type, profile=self.profile):
185-
# import tempfile
186-
# with tempfile.TemporaryDirectory() as td:
187-
188-
# model = GenericModel.from_model_catalog(ocid, artifact_dir=os.path.join(td, str(uuid.uuid4())), force_overwrite=True)
189-
190-
# conda_pack = self.config["execution"].get("conda", None)
191-
# if not conda_pack and hasattr(model.metadata_custom, "EnvironmentType") and model.metadata_custom.EnvironmentType == "published" and hasattr(model.metadata_custom, "CondaEnvironmentPath"):
192-
# conda_pack = model.metadata_custom.CondaEnvironmentPath
193-
# if conda_pack and "service-conda-packs" not in conda_pack:
194-
# print("install conda pack and activate the conda pack.")
195-
196-
# data = json.loads(data)
197-
# print(model.verify(data))
198-
# else:
199-
# raise ValueError("Only model ocid or model deployment ocid is supported.")
200-
201-

0 commit comments

Comments
 (0)