hlydecker commited on
Commit
e280f2c
1 Parent(s): f3291c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ models = ["model_weights/md_v5a.0.0.pt","model_weights/md_v5b.0.0.pt"]
16
 
17
  # model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/md_v5a.0.0.pt")
18
 
19
- def yolo(im, size=640, model_name):
20
 
21
  model = model = torch.hub.load('ultralytics/yolov5', 'custom', model_name)
22
  g = (size / max(im.size)) # gain
 
16
 
17
  # model = torch.hub.load('ultralytics/yolov5', 'custom', "model_weights/md_v5a.0.0.pt")
18
 
19
+ def yolo(img_input, size=640, model_name):
20
 
21
  model = model = torch.hub.load('ultralytics/yolov5', 'custom', model_name)
22
  g = (size / max(im.size)) # gain