Update main.py
Browse files
main.py
CHANGED
|
@@ -33,7 +33,7 @@ async def prediction(image: UploadFile = File(...)):
|
|
| 33 |
# process image
|
| 34 |
image = Image.open(BytesIO(image))
|
| 35 |
image = image.resize((image_shape[0], image_shape[1]))
|
| 36 |
-
|
| 37 |
|
| 38 |
image = np.expand_dims(image, axis=0)
|
| 39 |
prediction = model.predict(image)[0]
|
|
|
|
| 33 |
# process image
|
| 34 |
image = Image.open(BytesIO(image))
|
| 35 |
image = image.resize((image_shape[0], image_shape[1]))
|
| 36 |
+
|
| 37 |
|
| 38 |
image = np.expand_dims(image, axis=0)
|
| 39 |
prediction = model.predict(image)[0]
|