mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
10 lines
221 B
Python
10 lines
221 B
Python
|
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)
|