aap-utils 0.1.6__py3-none-any.whl → 0.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aap_utils/__init__.py +1 -2
- aap_utils/register.py +3 -1
- {aap_utils-0.1.6.dist-info → aap_utils-0.1.7.dist-info}/METADATA +1 -1
- aap_utils-0.1.7.dist-info/RECORD +6 -0
- aap_utils/init_kcn.py +0 -19
- aap_utils-0.1.6.dist-info/RECORD +0 -7
- {aap_utils-0.1.6.dist-info → aap_utils-0.1.7.dist-info}/WHEEL +0 -0
- {aap_utils-0.1.6.dist-info → aap_utils-0.1.7.dist-info}/top_level.txt +0 -0
aap_utils/__init__.py
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
from .register import register_demo
|
2
|
-
from .register import get_args
|
1
|
+
from .register import register_demo, get_args
|
aap_utils/register.py
CHANGED
@@ -63,7 +63,9 @@ def create_url(domain_name = "aiplatform.vcntt.tech"):
|
|
63
63
|
|
64
64
|
def get_args():
|
65
65
|
kcn_params = "config.yaml"
|
66
|
-
|
66
|
+
|
67
|
+
run_py_path = os.path.abspath(os.path.dirname(__file__)) # Get the directory of this script
|
68
|
+
config_path = os.path.join(run_py_path, "configs") # Set config_path relative to run.py
|
67
69
|
overrides = []
|
68
70
|
|
69
71
|
if os.environ.get('KCN_PARAMS') and os.environ.get('KCN_PARAMS') != '':
|
@@ -0,0 +1,6 @@
|
|
1
|
+
aap_utils/__init__.py,sha256=UB0P2cVBboRNY4SE__iGw0Nscwv9KJFTINuwydrWv4M,45
|
2
|
+
aap_utils/register.py,sha256=LhyPdo375TAR8rb-adN9PJaTsDrd10StfX1QX_YRblw,3226
|
3
|
+
aap_utils-0.1.7.dist-info/METADATA,sha256=-l64FenVgq64Fzh-TmXXxtxnoMEWJL7Co-yiuu9ulSE,346
|
4
|
+
aap_utils-0.1.7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
5
|
+
aap_utils-0.1.7.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
|
6
|
+
aap_utils-0.1.7.dist-info/RECORD,,
|
aap_utils/init_kcn.py
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
from hydra import initialize, compose
|
3
|
-
from omegaconf import OmegaConf, DictConfig
|
4
|
-
kcn_params = "config.yaml"
|
5
|
-
config_path="configs/"
|
6
|
-
overrides = []
|
7
|
-
|
8
|
-
if os.environ.get('KCN_PARAMS') and os.environ.get('KCN_PARAMS') != '':
|
9
|
-
full_path = os.getenv('KCN_PARAMS')
|
10
|
-
full_path = "../" + full_path
|
11
|
-
config_path = os.path.dirname(full_path)
|
12
|
-
kcn_params = os.path.basename(full_path) # Extract the filename
|
13
|
-
|
14
|
-
if os.environ.get('KCN_OVERRIDES') and os.environ.get('KCN_OVERRIDES') != '':
|
15
|
-
overrides_env = os.getenv("KCN_OVERRIDES")
|
16
|
-
overrides = overrides_env.split('|') if overrides_env else []
|
17
|
-
|
18
|
-
with initialize(version_base=None, config_path=config_path):
|
19
|
-
args = compose(config_name=kcn_params)
|
aap_utils-0.1.6.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
aap_utils/__init__.py,sha256=QcqBOrCuKWHsW7wNycAyPJTPquUzw_dg8E98XTm7OUk,67
|
2
|
-
aap_utils/init_kcn.py,sha256=FMX9w0WoaP6I3yc3xn8xqGYT2VbtG2uJbwpTKouZpew,718
|
3
|
-
aap_utils/register.py,sha256=YDUvUtoICYVMuuzYAueb34ZtGcYI8SJ6YxoNB3POyyQ,3069
|
4
|
-
aap_utils-0.1.6.dist-info/METADATA,sha256=icRBc45ty6jVl1bXuZUQw52XCvMW7yWG8j21_OXkGA4,346
|
5
|
-
aap_utils-0.1.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
aap_utils-0.1.6.dist-info/top_level.txt,sha256=Qt5xmL8_0_jhMl9uA3lg-xnvs4nCEyVj1tBE4vnp36M,10
|
7
|
-
aap_utils-0.1.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|