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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -5,8 +5,7 @@ import os
5
  import shutil
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)
 
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)