initialize result so not to cause exception on empty results
This commit is contained in:
parent
fef98723b2
commit
65be1df7bb
@ -135,7 +135,7 @@ class InterrogateModels:
|
||||
return caption[0]
|
||||
|
||||
def interrogate(self, pil_image):
|
||||
res = None
|
||||
res = ""
|
||||
|
||||
try:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user