ammariii08 commited on
Commit
5d6860d
·
verified ·
1 Parent(s): eb0689e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -324,7 +324,7 @@ def resize_img(img: np.ndarray, resize_dim):
324
  def predict(image, offset_inches):
325
  try:
326
  drawer_img = yolo_detect(image, ["box"])
327
- shrunked_img = make_square(shrink_bbox(drawer_img, 0.85))
328
  except:
329
  raise gr.Error("Unable to DETECT DRAWER, please take another picture with different magnification level!")
330
 
 
324
  def predict(image, offset_inches):
325
  try:
326
  drawer_img = yolo_detect(image, ["box"])
327
+ shrunked_img = make_square(shrink_bbox(drawer_img, 0.90))
328
  except:
329
  raise gr.Error("Unable to DETECT DRAWER, please take another picture with different magnification level!")
330