Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ MY_API_KEY = "PASTE_YOUR_AIZASY_KEY_HERE"
|
|
| 11 |
# --- 2. ADVANCED AI LOGIC ---
|
| 12 |
def snapchef_logic(image, diet_type, spice_level, language):
|
| 13 |
# A. Safety Checks
|
| 14 |
-
if not MY_API_KEY or "
|
| 15 |
return "⚠️ Error: You forgot to paste your API Key in line 8 of the code!", None
|
| 16 |
if image is None:
|
| 17 |
return "⚠️ Please upload a photo first!", None
|
|
|
|
| 11 |
# --- 2. ADVANCED AI LOGIC ---
|
| 12 |
def snapchef_logic(image, diet_type, spice_level, language):
|
| 13 |
# A. Safety Checks
|
| 14 |
+
if not MY_API_KEY or "AIzaSyCnx6TGpwfDp8XLloniYxxYi58bHz5k1vw" in MY_API_KEY:
|
| 15 |
return "⚠️ Error: You forgot to paste your API Key in line 8 of the code!", None
|
| 16 |
if image is None:
|
| 17 |
return "⚠️ Please upload a photo first!", None
|