Spaces:
Runtime error
Runtime error
Update shared_utils/config_loader.py
Browse files
shared_utils/config_loader.py
CHANGED
@@ -70,10 +70,10 @@ def read_single_conf_with_lru_cache(arg):
|
|
70 |
r = read_env_variable(arg, default_ref)
|
71 |
except:
|
72 |
try:
|
73 |
-
|
74 |
-
|
75 |
-
except:
|
76 |
-
|
77 |
r = getattr(importlib.import_module('config'), arg)
|
78 |
|
79 |
# 在读取API_KEY时,检查一下是不是忘了改config
|
|
|
70 |
r = read_env_variable(arg, default_ref)
|
71 |
except:
|
72 |
try:
|
73 |
+
# # 优先级2. 获取config_private中的配置
|
74 |
+
# r = getattr(importlib.import_module('config_private'), arg)
|
75 |
+
# except:
|
76 |
+
# # 优先级3. 获取config中的配置
|
77 |
r = getattr(importlib.import_module('config'), arg)
|
78 |
|
79 |
# 在读取API_KEY时,检查一下是不是忘了改config
|