Skip to content

Commit 96383bc

Browse files
authored
fix bug for interrogate or caption
Provide support for /sdapi/v1/interrogate.Use API to get image caption
1 parent a1cb4c6 commit 96383bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webuiapi/webuiapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def _to_api_result(self, response):
153153
info = r['info']
154154
elif 'html_info' in r.keys():
155155
info = r['html_info']
156+
elif 'caption' in r.keys():
157+
info = r['caption']
156158

157159
parameters = ''
158160
if 'parameters' in r.keys():

0 commit comments

Comments
 (0)