Add authentication settings (APP_PASSWORD, SESSION_SECRET_KEY) to config
Browse files92 unmodified lines93949596979892 unmodified linesWANDB_API_KEY: Optional[str] = NoneWANDB_PROJECT: str = "universal-model-trainer"# SecurityAPI_KEY_HEADER: str = "X-API-Key"ENABLE_AUTH: bool = False92 unmodified lines9394959697989910010110210310410510610710892 unmodified linesWANDB_API_KEY: Optional[str] = NoneWANDB_PROJECT: str = "universal-model-trainer"# Authentication (set via HF Space secrets)APP_PASSWORD: str = "" # Set via APP_PASSWORD env var / HF secretSESSION_SECRET_KEY: str = "change-this-in-production-use-random-32-chars"SESSION_EXPIRE_HOURS: int = 24@propertydef is_auth_configured(self) -> bool:"""Check if authentication is configured"""return bool(self.APP_PASSWORD)# SecurityAPI_KEY_HEADER: str = "X-API-Key"ENABLE_AUTH: bool = False
app/config.py+10