diff options
author | evshiron <evshiron@gmail.com> | 2022-10-29 22:03:32 +0000 |
---|---|---|
committer | evshiron <evshiron@gmail.com> | 2022-10-29 22:03:32 +0000 |
commit | 9f4f894d74b57c3d02ebccaa59f9c22fca2b6c90 (patch) | |
tree | eb023868f65827e4d22b4db23a815d6581be6ab2 /modules/api/models.py | |
parent | 9f104b53c425e248595e5b6481336d2a339e015e (diff) | |
download | stable-diffusion-webui-gfx803-9f4f894d74b57c3d02ebccaa59f9c22fca2b6c90.tar.gz stable-diffusion-webui-gfx803-9f4f894d74b57c3d02ebccaa59f9c22fca2b6c90.tar.bz2 stable-diffusion-webui-gfx803-9f4f894d74b57c3d02ebccaa59f9c22fca2b6c90.zip |
allow skip current image in progress api
Diffstat (limited to 'modules/api/models.py')
-rw-r--r-- | modules/api/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py index c8bc719a..9ee42a17 100644 --- a/modules/api/models.py +++ b/modules/api/models.py @@ -157,6 +157,9 @@ class PNGInfoRequest(BaseModel): class PNGInfoResponse(BaseModel): info: str = Field(title="Image info", description="A string with all the info the image had") +class ProgressRequest(BaseModel): + skip_current_image: bool = Field(default=False, title="Skip current image", description="Skip current image serialization") + class ProgressResponse(BaseModel): progress: float = Field(title="Progress", description="The progress with a range of 0 to 1") eta_relative: float = Field(title="ETA in secs") |