from pydantic_settings import BaseSettings from dotenv import load_dotenv load_dotenv() import os class Settings(BaseSettings): WHISPER_MODEL: str = "base" # Options: tiny, base, small, medium, large, large-v2, turbo TEMP_UPLOAD_DIR: str = "temp_uploads" TORCH_DEVICE: str = os.getenv("TORCH_DEVICE", "cpu") FORCE_FP32: bool = os.getenv("FORCE_FP32", "false").lower() == "true" settings = Settings()