gpt4all/read.py

10 lines
221 B
Python
Raw Normal View History

2023-03-25 12:17:48 -04:00
import yaml
def read_config(path):
# read yaml and return contents
with open(path, 'r') as file:
try:
return yaml.safe_load(file)
except yaml.YAMLError as exc:
print(exc)