michaelj commited on
Commit
f245a54
β€’
1 Parent(s): 8155076

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app_settings.py +4 -4
  2. paths.py +2 -1
app_settings.py CHANGED
@@ -18,16 +18,16 @@ class AppSettings:
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
 
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(SD_MODELS_FILE)
22
  )
23
  self._lcm_lora_models = get_models_from_text_file(
24
+ FastStableDiffusionPaths().get_models_config_path(LCM_LORA_MODELS_FILE)
25
  )
26
  self._openvino_lcm_models = get_models_from_text_file(
27
+ FastStableDiffusionPaths().get_models_config_path(OPENVINO_LCM_MODELS_FILE)
28
  )
29
  self._lcm_models = get_models_from_text_file(
30
+ FastStableDiffusionPaths().get_models_config_path(LCM_MODELS_FILE)
31
  )
32
 
33
  @property
paths.py CHANGED
@@ -49,7 +49,8 @@ class FastStableDiffusionPaths:
49
 
50
  @staticmethod
51
  def get_models_config_path(model_config_file: str) -> str:
52
- configs_path = get_configs_path()
 
53
  models_path = join_paths(
54
  configs_path,
55
  model_config_file,
 
49
 
50
  @staticmethod
51
  def get_models_config_path(model_config_file: str) -> str:
52
+ configs_path = get_configs_path()+'/app/'
53
+ print("εŸΊη‘€εœ°ε€",configs_path)
54
  models_path = join_paths(
55
  configs_path,
56
  model_config_file,