anand_plant2 / app.py
ranchopanda0's picture
Update app.py
7507f29 verified
raw
history blame
374 Bytes
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.")