Spaces:
Runtime error
Runtime error
michaelwja
commited on
Commit
•
08b7eef
1
Parent(s):
b01fc15
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def yolov7_inference(
|
|
26 |
Rendered image
|
27 |
"""
|
28 |
|
29 |
-
model = torch.hub.load('WongKinYiu/yolov7', 'custom', path='
|
30 |
model.conf = conf_threshold
|
31 |
model.iou = iou_threshold
|
32 |
results = model([image], size=image_size)
|
|
|
26 |
Rendered image
|
27 |
"""
|
28 |
|
29 |
+
model = torch.hub.load('WongKinYiu/yolov7', 'custom', path='skin_burn.pt', source='local', device="cpu")
|
30 |
model.conf = conf_threshold
|
31 |
model.iou = iou_threshold
|
32 |
results = model([image], size=image_size)
|