Sa-m commited on
Commit
61a1dcc
·
1 Parent(s): 674051d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def find(name, path):
19
  if name in files:
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):
 
19
  if name in files:
20
  return os.path.join(root, name)
21
 
22
+ model = torch.hub.load('ultralytics/yolov5', 'custom', path='Content/best.pt',device='gpu')
23
  model.conf = 0.45
24
  #, force_reload=True
25
  def detect(inp):