pankajsingh3012 commited on
Commit
4b58afd
1 Parent(s): 210de30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def model_pred(model, image):
86
  color=(0, 255, 0),
87
  thickness=10)
88
  cv2.putText(image, f"{label},{round(round(np.max(y_pred_prob), 2)*100,2)}%",
89
- (y, y + w), cv2.FONT_HERSHEY_COMPLEX, 2,
90
  (0, 255, 255), 2)
91
  return image
92
 
 
86
  color=(0, 255, 0),
87
  thickness=10)
88
  cv2.putText(image, f"{label},{round(round(np.max(y_pred_prob), 2)*100,2)}%",
89
+ (x, y + h), cv2.FONT_HERSHEY_COMPLEX, 2,
90
  (0, 255, 255), 2)
91
  return image
92