Spaces:
Runtime error
Runtime error
Update Home.py
Browse files
Home.py
CHANGED
@@ -26,7 +26,7 @@ def read_api_key_from_secrets(file_path='secrets.json'):
|
|
26 |
# Example usage
|
27 |
try:
|
28 |
# key = read_api_key_from_secrets()
|
29 |
-
os.environ[key]
|
30 |
openai.api_key = key
|
31 |
os.environ['OPENAI_API_KEY'] = key
|
32 |
print(f"OpenAI API Key Found")
|
|
|
26 |
# Example usage
|
27 |
try:
|
28 |
# key = read_api_key_from_secrets()
|
29 |
+
key = os.environ[key]
|
30 |
openai.api_key = key
|
31 |
os.environ['OPENAI_API_KEY'] = key
|
32 |
print(f"OpenAI API Key Found")
|