Spaces:
Sleeping
Sleeping
# core/config.py | |
# -*- coding: utf-8 -*- | |
# | |
# PROJECT: CognitiveEDA v5.0 - The QuantumLeap Intelligence Platform | |
# | |
# DESCRIPTION: Centralized, environment-aware configuration management using | |
# Pydantic for robust validation and type safety. | |
from pydantic_settings import BaseSettings, SettingsConfigDict | |
class AppConfig(BaseSettings): | |
""" | |
Application configuration model. Loads settings from a .env file. | |
""" | |
APP_TITLE: str = "π CognitiveEDA v5.0: The QuantumLeap Intelligence Platform" | |
GEMINI_MODEL: str = 'gemini-1.5-flash-latest' | |
MAX_UI_ROWS: int = 50_000 | |
GOOGLE_API_KEY: str | |
# Pydantic settings configuration | |
model_config = SettingsConfigDict(env_file='.env', env_file_encoding='utf-8', extra='ignore') | |
# Instantiate the configuration object to be imported by other modules | |
settings = AppConfig() |