Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from groq import Groq
|
| 3 |
import os
|
| 4 |
-
print("DEBUG KEY:", os.environ.get("GROQ_API_KEY"))
|
| 5 |
|
| 6 |
-
api_key = os.environ.get("GROQ_API_KEY")
|
| 7 |
-
|
| 8 |
-
if not api_key:
|
| 9 |
-
raise ValueError("❌ GROQ_API_KEY not found in environment variables")
|
| 10 |
|
|
|
|
| 11 |
client = Groq(api_key=api_key)
|
| 12 |
|
| 13 |
def get_recommendation(quantity, food_type, expiry_hours):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from groq import Groq
|
| 3 |
import os
|
|
|
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
api_key = os.environ.get("GROQ_API_KEY")
|
| 7 |
client = Groq(api_key=api_key)
|
| 8 |
|
| 9 |
def get_recommendation(quantity, food_type, expiry_hours):
|