Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -44,7 +44,7 @@ class EndpointHandler():
|
|
| 44 |
image_path = event["inputs"]
|
| 45 |
|
| 46 |
try:
|
| 47 |
-
image = Image.Image()._new(Image.open(BytesIO(
|
| 48 |
#image = urlopen(image_path).read()
|
| 49 |
predictions = self.predict_objects(imag)
|
| 50 |
return {
|
|
|
|
| 44 |
image_path = event["inputs"]
|
| 45 |
|
| 46 |
try:
|
| 47 |
+
image = Image.Image()._new(Image.open(BytesIO(image_path)))
|
| 48 |
#image = urlopen(image_path).read()
|
| 49 |
predictions = self.predict_objects(imag)
|
| 50 |
return {
|