From 5c7eb8a60a99b0d5f3eba600b86d93ee32233a10 Mon Sep 17 00:00:00 2001 From: saloui Date: Mon, 12 Jun 2023 15:45:59 +0200 Subject: [PATCH] enhanced configuration loading --- app.py | 24 +++--------------------- configs/config.yaml | 2 +- shared/.keep | 0 web/src/clip | 1 + web/src/taming-transformers | 1 + 5 files changed, 6 insertions(+), 22 deletions(-) delete mode 100644 shared/.keep create mode 160000 web/src/clip create mode 160000 web/src/taming-transformers diff --git a/app.py b/app.py index 0853589b..9d7021e4 100644 --- a/app.py +++ b/app.py @@ -1181,26 +1181,8 @@ if __name__ == "__main__": ) args = parser.parse_args() - # The default configuration must be kept unchanged as it is committed to the repository, - # so we have to make a copy that is not comitted - default_config = load_config("configs/config.yaml") - - if args.config!="local_config": - args.config = "local_config" - if not lollms_paths.personal_configuration_path/f"local_config.yaml".exists(): - print("No local configuration file found. Building from scratch") - shutil.copy(default_config, lollms_paths.personal_configuration_path/f"local_config.yaml") - - config_file_path = lollms_paths.personal_configuration_path/f"local_config.yaml" - config = LOLLMSConfig(config_file_path) - - - if "version" not in config or int(config["version"])