File size: 931 Bytes
801f06c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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()