sarahawad24 commited on
Commit
42d98a1
·
verified ·
1 Parent(s): f6f8722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import numpy as np
5
  import torchvision.transforms as T
6
 
7
  # Load your model
8
- model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt') # Adjust path if necessary
9
  model.eval()
10
 
11
  # Define your classes
 
5
  import torchvision.transforms as T
6
 
7
  # Load your model
8
+ model = torch.hub.load('ultralytics/yolov8', 'custom', path='best.pt', trust_repo=True)
9
  model.eval()
10
 
11
  # Define your classes