Download backend/app/config.py from modventures/character-studio: direct link, hf CLI and curl.
- Browser
- Download file 931 Bytes
-
https://huggingface.co/spaces/modventures/character-studio/resolve/main/backend/app/config.py
- Command line
-
hf download hf://spaces/modventures/character-studio/backend/app/config.py
-
curl -L -o config.py https://huggingface.co/spaces/modventures/character-studio/resolve/main/backend/app/config.py
931 Bytes
| from pathlib import Path | |
| from typing import Literal | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| model_config = SettingsConfigDict(env_file=".env", extra="ignore") | |
| app_name: str = "Character Studio" | |
| database_url: str = "sqlite:///./data/app.db" | |
| assets_dir: Path = Path("assets") | |
| model_weights_dir: Path = Path("model_weights") | |
| ollama_url: str = "http://127.0.0.1:11434" | |
| dialogue_model: str = "qwen3:1.7b" | |
| speech_provider: Literal["kokoro", "chatterbox"] = "kokoro" | |
| video_provider: Literal["sadtalker", "infinitetalk"] = "sadtalker" | |
| speech_url: str = "" | |
| video_url: str = "" | |
| provider_token: str = "" | |
| provider_timeout: int = 1800 | |
| worker_poll_seconds: float = 2 | |
| seed_characters: bool = True | |
| fixed_demo_mode: bool = True | |
| enable_ai_drafts: bool = False | |
| enable_animated_renders: bool = False | |
| settings = Settings() | |