Spaces:
Sleeping
Sleeping
| import os | |
| from dotenv import load_dotenv | |
| # Load environment variables from .env file | |
| load_dotenv() | |
| # Access the API key | |
| api_key = os.getenv('OPENAI_API_KEY') | |
| # Use the API key in your application | |
| print(f"Your API key is: {api_key}") |