Download app/core/config.py from zclap/VTO: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/spaces/zclap/VTO/resolve/main/app/core/config.py
- Command line
-
hf download hf://spaces/zclap/VTO/app/core/config.py
-
curl -L -o config.py https://huggingface.co/spaces/zclap/VTO/resolve/main/app/core/config.py
533 Bytes
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| import os | |
| class Settings(BaseSettings): | |
| GEMINI_API_KEY: str | |
| IMAGE_GEN_MODEL: str = "gemini-2.0-flash-preview-image-generation" | |
| # Pydantic-settings will automatically look for a .env file | |
| # and load variables from there if they match the field names. | |
| model_config = SettingsConfigDict(env_file=".env", env_file_encoding='utf-8', extra='ignore') | |
| # Create a single instance of the settings to be used throughout the application | |
| settings = Settings() |