File size: 419 Bytes
9f559c6
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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()