Skip to content

Commit e05a420

Browse files
authored
to be compatible with ts inference yaml (#2682)
1 parent c32023c commit e05a420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlex/inference/utils/io/readers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,5 +349,5 @@ class YAMLReaderBackend(_BaseReaderBackend):
349349

350350
def read_file(self, in_path, **kwargs):
351351
with open(in_path, "r", encoding="utf-8", **kwargs) as yaml_file:
352-
data = yaml.safe_load(yaml_file)
352+
data = yaml.load(yaml_file, Loader=yaml.FullLoader)
353353
return data

0 commit comments

Comments
 (0)