Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def find(name, path):
|
|
20 |
return os.path.join(root, name)
|
21 |
|
22 |
model = torch.hub.load('ultralytics/yolov5', 'custom', path='Content/best.pt')
|
23 |
-
model.conf
|
24 |
#, force_reload=True
|
25 |
def detect(inp):
|
26 |
#g = (size / max(inp.size)) # gain
|
|
|
20 |
return os.path.join(root, name)
|
21 |
|
22 |
model = torch.hub.load('ultralytics/yolov5', 'custom', path='Content/best.pt')
|
23 |
+
model.conf = 0.45
|
24 |
#, force_reload=True
|
25 |
def detect(inp):
|
26 |
#g = (size / max(inp.size)) # gain
|