diff --git a/common/tabby_config.py b/common/tabby_config.py index c0c9e58..f3a189f 100644 --- a/common/tabby_config.py +++ b/common/tabby_config.py @@ -16,10 +16,7 @@ class TabbyConfig: developer: dict = {} embeddings: dict = {} - def __init__(self): - pass - - def load_config(self, arguments: Optional[dict] = None): + def load(self, arguments: Optional[dict] = None): """load the global application config""" # config is applied in order of items in the list @@ -87,5 +84,5 @@ class TabbyConfig: pass -# Create an empty instance of the shared var to make sure nothing breaks +# Create an empty instance of the config class config: TabbyConfig = TabbyConfig() diff --git a/main.py b/main.py index f017ecc..587cd4b 100644 --- a/main.py +++ b/main.py @@ -110,7 +110,7 @@ def entrypoint(arguments: Optional[dict] = None): arguments = convert_args_to_dict(parser.parse_args(), parser) # load config - config.load_config(arguments) + config.load(arguments) if do_export_openapi: openapi_json = export_openapi()