Diff of /medicalbert/config.py [000000] .. [d129b2]

Switch to unified view

a b/medicalbert/config.py
1
# We store all the application settings here.
2
3
# File locations
4
import json
5
6
7
def get_configuration(args):
8
    with open('default.json') as json_data:
9
        conf = json.load(json_data)
10
11
    for key, value in vars(args).items():
12
        if value:
13
            conf[key] = value
14
    return conf
15
16
17