Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
|
@@ -115,6 +115,7 @@ async def vpredict(image: UploadFile = File(...)):
|
|
| 115 |
img = Image.open(io.BytesIO(await image.read()))
|
| 116 |
# img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
|
| 117 |
img = cv2.imdecode(np.array(img), cv2.IMREAD_COLOR)
|
|
|
|
| 118 |
# img = img.resize((128, 128))
|
| 119 |
# img_array = np.array(img) / 255.0
|
| 120 |
# Get the prediction
|
|
|
|
| 115 |
img = Image.open(io.BytesIO(await image.read()))
|
| 116 |
# img = cv2.cvtColor(np.array(img), cv2.COLOR_RGB2BGR)
|
| 117 |
img = cv2.imdecode(np.array(img), cv2.IMREAD_COLOR)
|
| 118 |
+
print("IAM HERE **********************************************************************************")
|
| 119 |
# img = img.resize((128, 128))
|
| 120 |
# img_array = np.array(img) / 255.0
|
| 121 |
# Get the prediction
|