[d129b2]: / medicalbert / config.py

Download this file

18 lines (10 with data), 297 Bytes

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