MissingBreath commited on
Commit
f43ba17
·
verified ·
1 Parent(s): 29c3539

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +1 -1
api.py CHANGED
@@ -229,7 +229,7 @@ async def classify(image: UploadFile = File(...)):
229
  cropped_image = cropped_image.resize((64,64))
230
  img_array = np.array(cropped_image) / 255.0
231
  img_array = np.expand_dims(img_array, axis=0)
232
- predictions = yolomodel.predict(img_array)
233
  predicted_class_idx = np.argmax(predictions)
234
  predicted_class_idx = int(predicted_class_idx)
235
 
 
229
  cropped_image = cropped_image.resize((64,64))
230
  img_array = np.array(cropped_image) / 255.0
231
  img_array = np.expand_dims(img_array, axis=0)
232
+ predictions = model.predict(img_array)
233
  predicted_class_idx = np.argmax(predictions)
234
  predicted_class_idx = int(predicted_class_idx)
235