Spaces:
Runtime error
Runtime error
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| APP_NAME: str | |
| APP_VERSION: str | |
| APP_VARIENT: str | |
| INFERENCE_TYPE:str ="local" # local or remote | |
| DATABASE_URL:str ="sqlite+aiosqlite:///./app.db" | |
| LOCAL_INFERENCE_MODEL_SIZE:str ="small" # small , base | |
| REMOTE_INFERENCE_PROVIDER:str ="mistral" # mistral , groq | |
| MISTRAL_MODEL:str="voxtral-mini-latest" | |
| MISTRAL_API_KEY:str | |
| GROQ_API_KEY:str | |
| GROQ_MODEL:str="whisper-large-v3-turbo" | |
| DEEPGRAM_API_KEY:str="0b47e602a9df5a073fa000986aa4ff465d36c3c6" | |
| DEEPGRAM_MODEL:str="nova-3" | |
| ASSEMBLYAI_API_KEY:str="5efd83b230794b3ebf332b28672dc441" | |
| CUSTOM_STT_URL:str = "https://elwanda-agnathous-tragically.ngrok-free.dev/transcribe" # the URL from Colab | |
| class Config: | |
| env_file = ".env" | |
| def get_settings(): ## this makes any got by "get_settings().APP_NAME" | |
| return Settings() |