aboutsummaryrefslogtreecommitdiff
path: root/modules/api/api.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-11 19:06:08 +0300
committerGitHub <noreply@github.com>2023-01-11 19:06:08 +0300
commit590ff5ce5b2e4474f998421c8de99baf74c45b5b (patch)
tree60f9e94bd709aed5a2af0ae64377beacc50c156f /modules/api/api.py
parent6d7f3d107263ed4e767bd2a50cce82f125d4ddbf (diff)
parent39ea251945d70efcf9b59d44eb0e71269d754aa4 (diff)
Merge pull request #6647 from vladmandic/update-progress-api
add textinfo to progress api response
Diffstat (limited to 'modules/api/api.py')
-rw-r--r--modules/api/api.py4
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