Add authentication settings (APP_PASSWORD, SESSION_SECRET_KEY) to config
Browse files92 unmodified lines9394959697989910010110210310410510610710892 unmodified lines WANDB_API_KEY: Optional[str] = None WANDB_PROJECT: str = "universal-model-trainer" # Authentication (set via HF Space secrets) APP_PASSWORD: str = "" # Set via APP_PASSWORD env var / HF secret SESSION_SECRET_KEY: str = "change-this-in-production-use-random-32-chars" SESSION_EXPIRE_HOURS: int = 24 @property def is_auth_configured(self) -> bool: """Check if authentication is configured""" return bool(self.APP_PASSWORD) # Security API_KEY_HEADER: str = "X-API-Key" ENABLE_AUTH: bool = Falseapp/config.py+10