aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Mandic <mandic00@live.com>2022-12-31 12:46:04 +0000
committerGitHub <noreply@github.com>2022-12-31 12:46:04 +0000
commit65be1df7bb55b21a3d76630a397c820218cbd12a (patch)
treeef796784c42d3a52c3dd0a52968347d64859b6d5
parentfef98723b2b1c7a9893ead41bbefcb36192babd6 (diff)
downloadstable-diffusion-webui-gfx803-65be1df7bb55b21a3d76630a397c820218cbd12a.tar.gz
stable-diffusion-webui-gfx803-65be1df7bb55b21a3d76630a397c820218cbd12a.tar.bz2
stable-diffusion-webui-gfx803-65be1df7bb55b21a3d76630a397c820218cbd12a.zip
initialize result so not to cause exception on empty results
-rw-r--r--modules/interrogate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/interrogate.py b/modules/interrogate.py
index 46935210..6f761c5a 100644
--- a/modules/interrogate.py
+++ b/modules/interrogate.py
@@ -135,7 +135,7 @@ class InterrogateModels:
return caption[0]
def interrogate(self, pil_image):
- res = None
+ res = ""
try: