guiwitz commited on
Commit
c48f318
·
1 Parent(s): 5a21fa9

fix model input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
7
  model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True)
8
 
9
  def inference(im):
10
- results = model(imgs)
11
 
12
  results.render() # updates results.imgs with boxes and labels
13
 
 
7
  model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True)
8
 
9
  def inference(im):
10
+ results = model(im)
11
 
12
  results.render() # updates results.imgs with boxes and labels
13