Spaces:
Sleeping
Sleeping
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.") | |