We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48332d1 commit 21a0f3bCopy full SHA for 21a0f3b
ads/opctl/backend/local.py
@@ -718,9 +718,8 @@ def predict(self) -> None:
718
conda_slug, conda_path = self._get_conda_info_from_runtime(
719
artifact_dir=artifact_directory
720
)
721
- if not conda_slug and conda_path:
722
- conda_slug = conda_path.split("/")[-1]
723
- self.config["execution"]["conda_slug"] = conda_slug
+ if 'conda_slug' not in self.config["execution"]:
+ self.config["execution"]["conda_slug"] = conda_path.split("/")[-1] if conda_path else conda_slug
724
725
self.config["execution"]["image"] = ML_JOB_IMAGE
726
0 commit comments