nicklorch commited on
Commit
ed041c3
1 Parent(s): c04fdf8

Image instance fix

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -24,7 +24,7 @@ class EndpointHandler():
24
  text_input = None
25
  image_data = None
26
 
27
- if isinstance(inputs, Image):
28
  logger.info('image sent directly')
29
  image = inputs
30
  else:
 
24
  text_input = None
25
  image_data = None
26
 
27
+ if isinstance(inputs, Image.Image):
28
  logger.info('image sent directly')
29
  image = inputs
30
  else: