File size: 430 Bytes
227477c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os

class Settings:
    PROJECT_NAME: str = "ML Prediction API"
    PROJECT_VERSION: str = "1.0.0"
    
    # Database
    DATABASE_URL: str = os.getenv("DATABASE_URL", "postgresql://postgres:pwd@localhost:5432/prediction_db")
    
    # Security
    API_KEY: str = os.getenv("API_KEY", "default_insecure_key")
    
    # Model
    MODEL_PATH: str = os.getenv("MODEL_PATH", "02_xgb_model_tuned.pkl")

settings = Settings()