aboutsummaryrefslogtreecommitdiff
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorVladimir Mandic <mandic00@live.com>2023-01-11 10:23:51 -0500
committerGitHub <noreply@github.com>2023-01-11 10:23:51 -0500
commit39ea251945d70efcf9b59d44eb0e71269d754aa4 (patch)
treeae91f6f9e8f50a70eb127f4bf4c1e4eb78b583db /modules/api/models.py
parent45a8b758a7bcb144242aee710dfcd1aedcf30b7f (diff)
add textinfo to progress response
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index 034b4aa0..c78095ca 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -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.")