mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-06 09:12:39 -08:00
allow skip current image in progress api
This commit is contained in:
parent
9f104b53c4
commit
9f4f894d74
2 changed files with 5 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue