mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 11:58:53 +00:00
mono repo structure
This commit is contained in:
10
gpt4all-training/read.py
Normal file
10
gpt4all-training/read.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
Reference in New Issue
Block a user