Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -219,7 +219,7 @@ class EndpointHandler:
|
|
| 219 |
data = list(self.collection.find().skip(start_index).limit(limit_count))
|
| 220 |
start_time=time.time()
|
| 221 |
for document in data:
|
| 222 |
-
image=load_image(document.get('
|
| 223 |
image = image.convert("RGBA")
|
| 224 |
outputs = self.predictor.predict(
|
| 225 |
image,
|
|
|
|
| 219 |
data = list(self.collection.find().skip(start_index).limit(limit_count))
|
| 220 |
start_time=time.time()
|
| 221 |
for document in data:
|
| 222 |
+
image=load_image(document.get('createdImage', 'https://nomorecopyright.com/default.jpg'))
|
| 223 |
image = image.convert("RGBA")
|
| 224 |
outputs = self.predictor.predict(
|
| 225 |
image,
|