File size: 444 Bytes
6bae932
 
 
 
 
 
 
6296a21
 
6bae932
 
6f3cedc
6bae932
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

from pydantic import BaseModel


class Settings(BaseModel):
    hf_token: str = os.environ.get("hf_token")
    base_sd_model: str = os.environ.get("base_sd_model") or "stabilityai/stable-diffusion-xl-base-1.0"
    refiner_sd_model: str = os.environ.get("refiner_sd_model") or "stabilityai/stable-diffusion-xl-refiner-1.0"
    version: str = "0.1.0"
    url_version: str = "v1"
    prefix: str = "/v1/unik-ml"


settings = Settings()