Ai-ToolStack / app /utils /config.py
teja141290's picture
Update: Remove damage model and add Docker configuration
98bf2c9
raw
history blame
343 Bytes
import os
from dotenv import load_dotenv
# Simple load of environment variables, works both locally and on Spaces
load_dotenv()
class Config:
GROQ_API_KEY = os.getenv("GROQ_API_KEY")
@classmethod
def validate(cls):
if not cls.GROQ_API_KEY:
raise ValueError("GROQ_API_KEY environment variable is not set")