Image instance fix
Browse files- 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:
|