Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,7 @@ import os
|
|
5 |
import shutil
|
6 |
|
7 |
# Load the model
|
8 |
-
model = torch.hub.load('ultralytics/yolov5', '
|
9 |
-
model2 = torch.hub.load('ultralytics/yolov5', 'yolov5s', path = 'best.pt')
|
10 |
|
11 |
def detect_image(image):
|
12 |
results = model2(image)
|
|
|
5 |
import shutil
|
6 |
|
7 |
# Load the model
|
8 |
+
model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt')
|
|
|
9 |
|
10 |
def detect_image(image):
|
11 |
results = model2(image)
|