Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from dotenv import load_dotenv
|
|
| 5 |
|
| 6 |
# Load API key from .env file
|
| 7 |
load_dotenv()
|
| 8 |
-
api_key = os.getenv("
|
| 9 |
|
| 10 |
if not api_key:
|
| 11 |
raise ValueError("API Key not found! Ensure you have added OPENAI_API_KEY in your .env file.")
|
|
|
|
| 5 |
|
| 6 |
# Load API key from .env file
|
| 7 |
load_dotenv()
|
| 8 |
+
api_key = os.getenv("openai")
|
| 9 |
|
| 10 |
if not api_key:
|
| 11 |
raise ValueError("API Key not found! Ensure you have added OPENAI_API_KEY in your .env file.")
|