mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
Moved moodels to their own file and extracted base64 conversion to its own function
This commit is contained in:
8
modules/api/models.py
Normal file
8
modules/api/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from pydantic import BaseModel, Field, Json
|
||||
|
||||
class TextToImageResponse(BaseModel):
|
||||
images: list[str] = Field(default=None, title="Image", description="The generated image in base64 format.")
|
||||
parameters: Json
|
||||
info: Json
|
||||
|
||||
|
Reference in New Issue
Block a user