github-actions[bot]
Automated Deploy: 49714823cd4f8e3e8f1382d391cfb3b9732cc60c
801f06c
Raw History Blame Contribute Delete
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()