File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,3 @@ def set_log_level(log_level: str):
4141 logger .error (
4242 f"Aqua is not available for this notebook session { NB_SESSION_OCID } ."
4343 )
44- exit ()
Original file line number Diff line number Diff line change 55# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
66import os
77
8- from ads .aqua import ENV_VAR_LOG_LEVEL , set_log_level
8+ from ads .aqua import ENV_VAR_LOG_LEVEL , set_log_level , ODSC_MODEL_COMPARTMENT_OCID
99from ads .aqua .deployment import AquaDeploymentApp
1010from ads .aqua .evaluation import AquaEvaluationApp
1111from ads .aqua .finetune import AquaFineTuningApp
@@ -41,3 +41,6 @@ def __init__(
4141 'WARNING', 'ERROR', and 'CRITICAL'.
4242 """
4343 set_log_level (log_level )
44+ # gracefully exit if env var is not set
45+ if not ODSC_MODEL_COMPARTMENT_OCID :
46+ exit ()
You can’t perform that action at this time.
0 commit comments