Upload folder using huggingface_hub
Browse files
paths.py
CHANGED
|
@@ -11,7 +11,8 @@ def join_paths(
|
|
| 11 |
|
| 12 |
def get_app_path() -> str:
|
| 13 |
app_dir = os.path.dirname(__file__)
|
| 14 |
-
work_dir = os.path.dirname(app_dir)
|
|
|
|
| 15 |
return work_dir
|
| 16 |
|
| 17 |
|
|
@@ -49,8 +50,8 @@ class FastStableDiffusionPaths:
|
|
| 49 |
|
| 50 |
@staticmethod
|
| 51 |
def get_models_config_path(model_config_file: str) -> str:
|
| 52 |
-
configs_path = get_configs_path()
|
| 53 |
-
|
| 54 |
models_path = join_paths(
|
| 55 |
configs_path,
|
| 56 |
model_config_file,
|
|
|
|
| 11 |
|
| 12 |
def get_app_path() -> str:
|
| 13 |
app_dir = os.path.dirname(__file__)
|
| 14 |
+
work_dir = os.path.dirname(app_dir)+'/app'
|
| 15 |
+
print("基础地址",work_dir)
|
| 16 |
return work_dir
|
| 17 |
|
| 18 |
|
|
|
|
| 50 |
|
| 51 |
@staticmethod
|
| 52 |
def get_models_config_path(model_config_file: str) -> str:
|
| 53 |
+
configs_path = get_configs_path()
|
| 54 |
+
|
| 55 |
models_path = join_paths(
|
| 56 |
configs_path,
|
| 57 |
model_config_file,
|