add textinfo to progress response

This commit is contained in:
Vladimir Mandic
2023-01-11 10:23:51 -05:00
committed by GitHub
parent 45a8b758a7
commit 39ea251945
2 changed files with 3 additions and 2 deletions

View File

@@ -168,6 +168,7 @@ class ProgressResponse(BaseModel):
eta_relative: float = Field(title="ETA in secs")
state: dict = Field(title="State", description="The current state snapshot")
current_image: str = Field(default=None, title="Current image", description="The current image in base64 format. opts.show_progress_every_n_steps is required for this to work.")
textinfo: str = Field(default=None, title="Info text", description="Info text used by WebUI.")
class InterrogateRequest(BaseModel):
image: str = Field(default="", title="Image", description="Image to work on, must be a Base64 string containing the image's data.")