Spaces:
Paused
Paused
File size: 364 Bytes
99b955f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from pydantic import BaseModel
from enum import Enum, auto
from paths import FastStableDiffusionPaths
class ImageFormat(str, Enum):
"""Image format"""
JPEG = "jpeg"
PNG = "png"
class GeneratedImages(BaseModel):
path: str = FastStableDiffusionPaths.get_results_path()
format: str = ImageFormat.PNG.value.upper()
save_image: bool = True
|