From 58da9e3cf369ccd12901802bc7cb2214f677be4e Mon Sep 17 00:00:00 2001 From: LauraGPT Date: Thu, 9 Jul 2026 02:04:28 +0000 Subject: [PATCH] fix: use safe YAML loader for configs --- utils/infer_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/infer_utils.py b/utils/infer_utils.py index c39d433..9dcd083 100644 --- a/utils/infer_utils.py +++ b/utils/infer_utils.py @@ -358,7 +358,7 @@ def read_yaml(yaml_path: Union[str, Path]) -> Dict: raise FileExistsError(f"The {yaml_path} does not exist.") with open(str(yaml_path), "rb") as f: - data = yaml.load(f, Loader=yaml.Loader) + data = yaml.load(f, Loader=yaml.SafeLoader) return data