Spaces:
Paused
Paused
Download backend/api/models/response.py from tejani/fastsdcpuClone: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/tejani/fastsdcpuClone/resolve/main/backend/api/models/response.py
- Command line
-
hf download hf://spaces/tejani/fastsdcpuClone/backend/api/models/response.py
-
curl -L -o response.py https://huggingface.co/spaces/tejani/fastsdcpuClone/resolve/main/backend/api/models/response.py
382 Bytes
| 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 = "" | |