Refactor: unify invoke format of open() function
This commit is contained in:
@@ -238,7 +238,7 @@ class Config:
|
||||
"If you have no special needs, please do not modify default_config.yml."
|
||||
)
|
||||
# sys.exit(0)
|
||||
with open(file=config_path, mode="r", encoding="utf-8") as file:
|
||||
with open(config_path, "r", encoding="utf-8") as file:
|
||||
yaml_config: Dict[str, any] = yaml.safe_load(file.read())
|
||||
model_name: str = yaml_config["model_name"]
|
||||
self.model_name: str = model_name
|
||||
|
||||
Reference in New Issue
Block a user