| from pydantic_settings import BaseSettings |
| from typing import Optional |
|
|
| class Settings(BaseSettings): |
| |
| APP_NAME: str = "💡 Intelligent Retail Decision Making System" |
| VERSION: str = "1.0.0" |
| DEBUG: bool = False |
|
|
| |
| HOST: str = "127.0.0.1" |
| PORT: int = 5050 |
| API_PREFIX: str = "/api/v1" |
|
|
| |
| MODEL_CHECKPOINT: str = "yainage90/fashion-object-detection" |
| DETECTION_THRESHOLD: float = 0.4 |
|
|
| |
| SECRET_KEY: str = "xxx" |
| ALGORITHM: str = "HS256" |
| ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 30 |
| API_TOKEN: str = "xxx" |
|
|
| class Config: |
| |
| case_sensitive = True |
|
|
| settings = Settings() |