File size: 374 Bytes
0a131b9
4895bd1
 
 
 
 
7507f29
 
 
4895bd1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from dotenv import load_dotenv

# Load environment variables
load_dotenv()

# Debug: Print API key (Remove this line after testing)
PLANT_ID_API_KEY = os.getenv("PLANT_ID_API_KEY")
print(f"🔍 Loaded API Key: {PLANT_ID_API_KEY}")

if not PLANT_ID_API_KEY:
    raise ValueError("❌ API Key is missing! Set PLANT_ID_API_KEY in Hugging Face Secrets or .env file.")