Spaces:
Running
Running
File size: 259 Bytes
f2302df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import sys,yaml
filepath = "tokens.yaml"
# Read the config file to get tokens/API keys
def get_tokens():
tokendict={}
with open(filepath,'r') as file:
tokendict = yaml.safe_load(file)
#print(tokendict)
return tokendict
|