Spaces:
Build error
Build error
import os | |
# Fetch the API key from the environment | |
openai_api_key = os.getenv("OPENAI_API_KEY") | |
# Check if the key is set and print accordingly | |
if openai_api_key: | |
print("OPEN_API_KEY is set.") | |
else: | |
print("OPEN_API_KEY is not set.") | |