File size: 493 Bytes
5a58b2b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import os
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
APP_NAME: str = "Heart Disease Prediction API"
VERSION: str = "1.0.0"
API_V1_STR: str = "/api/v1"
# Model Configuration
MODEL_PATH: str = os.getenv("MODEL_PATH", "app/models/heart_disease_model.pkl")
# Logging
LOG_LEVEL: str = "INFO"
class Config:
env_file = ".env"
@lru_cache()
def get_settings():
return Settings()
|