rosebe commited on
Commit
5558e72
·
1 Parent(s): 018a50d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import shutil
6
 
7
  # Load the model
8
  model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True)
9
- model2 = path='best.pt
10
 
11
  def detect_image(image):
12
  results = model2(image)
 
6
 
7
  # Load the model
8
  model = torch.hub.load('ultralytics/yolov5', 'yolov5s', pretrained=True)
9
+ model2 = torch.hub.load('ultralytics/yolov5', 'yolov5s', path = 'best.pt')
10
 
11
  def detect_image(image):
12
  results = model2(image)