Spaces:
Runtime error
Runtime error
Download core/config.py from cloudaiRambo/cloudairambo: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/core/config.py
- Command line
-
hf download hf://spaces/cloudaiRambo/cloudairambo/core/config.py
-
curl -L -o config.py https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/core/config.py
774 Bytes
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from functools import lru_cache | |
| class Settings(BaseSettings): | |
| DATABASE_URL: str | |
| ADMIN_SECRET: str | |
| SECRET_KEY: str | |
| # ๐ REQUIRED: Admin login credentials (FastAPI Admin) | |
| ADMIN_USER: str | |
| ADMIN_PASS: str | |
| # ๐ Ad Manager settings | |
| GAM_NETWORK_CODE: str | |
| DEFAULT_SITE_URL: str | |
| # Optional directory paths | |
| TEMP_DIR: str = "./temp" | |
| OUTPUT_DIR: str = "./output" | |
| UPLOAD_DIR: str = "./uploads" | |
| # Pydantic v2 config | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| extra="ignore" # ignore unused environment variables | |
| ) | |
| settings = Settings() | |
| def get_settings(): | |
| return settings | |