sarahawad24 commited on
Commit
f6f8722
·
verified ·
1 Parent(s): 0e773c3

Update gradio.py

Browse files
Files changed (1) hide show
  1. gradio.py +1 -1
gradio.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') # Adjust path if necessary
9
  model.eval()
10
 
11
  # Define your classes