diff options
author | Vladimir Mandic <mandic00@live.com> | 2023-01-11 10:23:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 10:23:51 -0500 |
commit | 39ea251945d70efcf9b59d44eb0e71269d754aa4 (patch) | |
tree | ae91f6f9e8f50a70eb127f4bf4c1e4eb78b583db /modules/api/api.py | |
parent | 45a8b758a7bcb144242aee710dfcd1aedcf30b7f (diff) |
add textinfo to progress response
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 6c564ad8..5767ba90 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -286,7 +286,7 @@ class Api: # copy from check_progress_call of ui.py if shared.state.job_count == 0: - return ProgressResponse(progress=0, eta_relative=0, state=shared.state.dict()) + return ProgressResponse(progress=0, eta_relative=0, state=shared.state.dict(), textinfo=shared.state.textinfo) # avoid dividing zero progress = 0.01 @@ -308,7 +308,7 @@ class Api: if shared.state.current_image and not req.skip_current_image: current_image = encode_pil_to_base64(shared.state.current_image) - return ProgressResponse(progress=progress, eta_relative=eta_relative, state=shared.state.dict(), current_image=current_image) + return ProgressResponse(progress=progress, eta_relative=eta_relative, state=shared.state.dict(), current_image=current_image, textinfo=shared.state.textinfo) def interrogateapi(self, interrogatereq: InterrogateRequest): image_b64 = interrogatereq.image |