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):
41
41
logger .error (
42
42
f"Aqua is not available for this notebook session { NB_SESSION_OCID } ."
43
43
)
44
- exit ()
Original file line number Diff line number Diff line change 5
5
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
6
6
import os
7
7
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
9
9
from ads .aqua .deployment import AquaDeploymentApp
10
10
from ads .aqua .evaluation import AquaEvaluationApp
11
11
from ads .aqua .finetune import AquaFineTuningApp
@@ -41,3 +41,6 @@ def __init__(
41
41
'WARNING', 'ERROR', and 'CRITICAL'.
42
42
"""
43
43
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