checklist-agent / app /config.py
alexorlov's picture
Upload folder using huggingface_hub
6d2b0f9 verified
raw
history blame contribute delete
436 Bytes
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
anthropic_api_key: str = ""
environment: str = "development"
max_audio_duration_seconds: int = 120
whisper_model: str = "openai/whisper-small"
allowed_origins: str = "*"
class Config:
env_file = ".env"
extra = "ignore"
@lru_cache()
def get_settings() -> Settings:
return Settings()