Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,7 @@ api_key = os.environ.get("GROQ_API_KEY")
|
|
| 9 |
client = Groq(api_key=api_key) if api_key else None
|
| 10 |
|
| 11 |
def get_recommendation(quantity, food_type, expiry_hours):
|
|
|
|
| 12 |
if not client:
|
| 13 |
return "❌ GROQ_API_KEY not found. Please set your API key in environment variables or Secrets."
|
| 14 |
|
|
|
|
| 9 |
client = Groq(api_key=api_key) if api_key else None
|
| 10 |
|
| 11 |
def get_recommendation(quantity, food_type, expiry_hours):
|
| 12 |
+
print("DEBUG: API key loaded?", os.environ.get("GROQ_API_KEY") is not None)
|
| 13 |
if not client:
|
| 14 |
return "❌ GROQ_API_KEY not found. Please set your API key in environment variables or Secrets."
|
| 15 |
|