Upload folder using huggingface_hub
Browse files- app_settings.py +6 -5
app_settings.py
CHANGED
@@ -14,19 +14,20 @@ from copy import deepcopy
|
|
14 |
|
15 |
class AppSettings:
|
16 |
def __init__(self):
|
17 |
-
self.config_path = FastStableDiffusionPaths().get_app_settings_path()
|
18 |
print("ζε°ζ¨‘εε°ε",self.config_path)
|
|
|
19 |
self._stable_diffsuion_models = get_models_from_text_file (
|
20 |
-
FastStableDiffusionPaths().get_models_config_path(SD_MODELS_FILE)
|
21 |
)
|
22 |
self._lcm_lora_models = get_models_from_text_file(
|
23 |
-
FastStableDiffusionPaths().get_models_config_path(LCM_LORA_MODELS_FILE)
|
24 |
)
|
25 |
self._openvino_lcm_models = get_models_from_text_file(
|
26 |
-
FastStableDiffusionPaths().get_models_config_path(OPENVINO_LCM_MODELS_FILE)
|
27 |
)
|
28 |
self._lcm_models = get_models_from_text_file(
|
29 |
-
FastStableDiffusionPaths().get_models_config_path(LCM_MODELS_FILE)
|
30 |
)
|
31 |
|
32 |
@property
|
|
|
14 |
|
15 |
class AppSettings:
|
16 |
def __init__(self):
|
17 |
+
self.config_path = FastStableDiffusionPaths().get_app_settings_path()
|
18 |
print("ζε°ζ¨‘εε°ε",self.config_path)
|
19 |
+
base_url='/app/'
|
20 |
self._stable_diffsuion_models = get_models_from_text_file (
|
21 |
+
FastStableDiffusionPaths().get_models_config_path(base_url+SD_MODELS_FILE)
|
22 |
)
|
23 |
self._lcm_lora_models = get_models_from_text_file(
|
24 |
+
FastStableDiffusionPaths().get_models_config_path(base_url+LCM_LORA_MODELS_FILE)
|
25 |
)
|
26 |
self._openvino_lcm_models = get_models_from_text_file(
|
27 |
+
FastStableDiffusionPaths().get_models_config_path(base_url+OPENVINO_LCM_MODELS_FILE)
|
28 |
)
|
29 |
self._lcm_models = get_models_from_text_file(
|
30 |
+
FastStableDiffusionPaths().get_models_config_path(base_url+LCM_MODELS_FILE)
|
31 |
)
|
32 |
|
33 |
@property
|