fix model input
Browse files
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(
|
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 |
|