Spaces:
Sleeping
Sleeping
lauraparra28
commited on
Update functions.py
Browse files- functions.py +1 -2
functions.py
CHANGED
@@ -16,8 +16,7 @@ def load_api_key():
|
|
16 |
with open(api_key_file, 'r') as file:
|
17 |
api_key = json.load(file)['api_key']
|
18 |
else:
|
19 |
-
|
20 |
-
api_key = os.getenv['OPENAI_API_KEY']
|
21 |
|
22 |
return api_key
|
23 |
|
|
|
16 |
with open(api_key_file, 'r') as file:
|
17 |
api_key = json.load(file)['api_key']
|
18 |
else:
|
19 |
+
api_key = os.environ['OPENAI_API_KEY']
|
|
|
20 |
|
21 |
return api_key
|
22 |
|