File size: 293 Bytes
ca20ec1
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os
from dotenv import load_dotenv

# Load variables from .env file
load_dotenv()

HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")

if not HUGGINGFACEHUB_API_TOKEN:
    raise ValueError("CRITICAL: HUGGINGFACEHUB_API_TOKEN is missing from your environment or .env file.")