Spaces:
Sleeping
Sleeping
import json | |
import os | |
def get_json_cfg(): | |
"""Retrieve configuration file""" | |
config_path = os.getenv('CONFIG_PATH') | |
with open(config_path, 'r') as file: | |
config = json.load(file) | |
return config |