GS123 commited on
Commit
a0aeb27
·
verified ·
1 Parent(s): 9e510e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,8 +58,8 @@ def model_pred(model, image):
58
  cv2.rectangle(image, (x,y), (x+w, y+h),
59
  color=(0, 255, 0),
60
  thickness = 10)
61
- cv2.putText(image,f"{label},{round(np.max(y_pred_prob),2)}%",
62
- (x,y+h),cv2.FONT_HERSHEY_COMPLEX,2,
63
  (0,255,255),2)
64
  return image
65
 
 
58
  cv2.rectangle(image, (x,y), (x+w, y+h),
59
  color=(0, 255, 0),
60
  thickness = 10)
61
+ cv2.putText(image,f"{label},{np.round(np.max(y_pred_prob),2)}%",
62
+ (x,y-20),cv2.FONT_HERSHEY_COMPLEX,2,
63
  (0,255,255),2)
64
  return image
65