shl-recommender / app /config.py
devpatel1012's picture
Initial commit of SHL Assessment Recommender
ca20ec1
Raw
History Blame Contribute Delete
293 Bytes
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.")