Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import logging
|
|
| 8 |
logging.basicConfig(filename="error.log", level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s")
|
| 9 |
|
| 10 |
# Check if API key is loaded
|
| 11 |
-
api_key = os.
|
| 12 |
if not api_key:
|
| 13 |
logging.error("Missing GROQ_API_KEY environment variable.")
|
| 14 |
|
|
|
|
| 8 |
logging.basicConfig(filename="error.log", level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s")
|
| 9 |
|
| 10 |
# Check if API key is loaded
|
| 11 |
+
api_key = os.getenv("GROQ_API_KEY")
|
| 12 |
if not api_key:
|
| 13 |
logging.error("Missing GROQ_API_KEY environment variable.")
|
| 14 |
|