LogicGoInfotechSpaces's picture
fix: write data under /data and move Firebase creds path to /data; mount static from resolved dirs
2999873
raw
history blame
930 Bytes
"""
Configuration settings for the application
"""
import os
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
"""Application settings"""
# Firebase settings
ENABLE_APP_CHECK: bool = os.getenv("ENABLE_APP_CHECK", "true").lower() == "true"
FIREBASE_CREDENTIALS_PATH: str = os.getenv(
"FIREBASE_CREDENTIALS_PATH",
"/data/firebase-adminsdk.json"
)
# API settings
BASE_URL: str = os.getenv("BASE_URL", "http://localhost:8000")
# Model settings
MODEL_ID: str = os.getenv("MODEL_ID", "lllyasviel/control_v11f1e_sd15_color")
NUM_INFERENCE_STEPS: int = int(os.getenv("NUM_INFERENCE_STEPS", "20"))
# Storage settings
UPLOAD_DIR: str = os.getenv("UPLOAD_DIR", "uploads")
RESULT_DIR: str = os.getenv("RESULT_DIR", "results")
class Config:
env_file = ".env"
case_sensitive = False
settings = Settings()