MissingBreath commited on
Commit
0556fc9
·
verified ·
1 Parent(s): a2f9439

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -0
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