Skip to content

Commit 328cc26

Browse files
committed
Revert to FullLoader with context manager for model YAML with Python tags
1 parent c543b62 commit 328cc26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

audio_separator/separator/separator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def load_model_data_from_yaml(self, yaml_config_filename):
10581058
)
10591059

10601060
with open(model_data_yaml_filepath, encoding="utf-8") as f:
1061-
model_data = yaml.safe_load(f)
1061+
model_data = yaml.load(f, Loader=yaml.FullLoader)
10621062
self.logger.debug(f"Model data loaded from YAML file: {model_data}")
10631063

10641064
if "roformer" in model_data_yaml_filepath.lower():

0 commit comments

Comments
 (0)