learnable-ai / src /utils /imutils.py
ishworrsubedii's picture
Added new features and improved code formatting:
32a0eda
raw
history blame contribute delete
272 Bytes
"""
Created By: ishwor subedi
Date: 2024-08-13
"""
import yaml
def yaml_read(file_path):
with open(file_path, 'r') as stream:
try:
return yaml.safe_load(stream)
except yaml.YAMLError as exc:
print(exc)
return None