towhee.utils.yaml_utils.load_yaml

towhee.utils.yaml_utils.load_yaml(stream, typ: str = 'safe')[source]

Load the YAML document in a stream as Python object.

Parameters:
  • stream – The YAML file loaded in a stream.

  • typ – The type of Dumper/Loader to apply in ruamel.yaml.

Returns:

The YAML laoded as python object.