File size: 382 Bytes
79eeb88 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from typing import List
from pydantic import BaseModel
class StableDiffusionResponse(BaseModel):
"""
Stable diffusion response model
Attributes:
images (List[str]): List of JPEG image as base64 encoded
latency (float): Latency in seconds
error (str): Error message if any
"""
images: List[str]
latency: float
error: str = ""
|