Spaces:
Sleeping
Sleeping
| from functools import lru_cache | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from pydantic import EmailStr | |
| class AppSettings(BaseSettings): | |
| model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore") | |
| app_name: str = "Фитнес-опрос" | |
| whisper_model: str = "Systran/faster-whisper-small" | |
| llm_model: str = "Qwen/Qwen2.5-0.5B-Instruct" | |
| llm_local_path: str | None = None | |
| session_ttl_minutes: int = 120 | |
| smtp_host: str | None = None | |
| smtp_port: int = 587 | |
| smtp_username: str | None = None | |
| smtp_password: str | None = None | |
| smtp_use_tls: bool = True | |
| trainer_email: EmailStr | None = None | |
| default_from_email: EmailStr | None = None | |
| def get_settings() -> AppSettings: | |
| return AppSettings() | |