Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,6 @@ import os
|
|
| 4 |
|
| 5 |
# Groq client
|
| 6 |
api_key = os.environ.get("GROQ_API_KEY")
|
| 7 |
-
if not api_key:
|
| 8 |
-
raise ValueError("❌ GROQ_API_KEY not found in environment variables")
|
| 9 |
-
client = Groq(api_key=api_key)
|
| 10 |
|
| 11 |
def get_recommendation(quantity, food_type, expiry_hours):
|
| 12 |
if quantity < 20:
|
|
|
|
| 4 |
|
| 5 |
# Groq client
|
| 6 |
api_key = os.environ.get("GROQ_API_KEY")
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def get_recommendation(quantity, food_type, expiry_hours):
|
| 9 |
if quantity < 20:
|