ayoubsa commited on
Commit
810d670
·
verified ·
1 Parent(s): a3a6473

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ import torch
135
  from PIL import Image
136
 
137
  # Load the YOLO model
138
- model = torch.hub.load('ultralytics/yolov5', 'custom', path='model.pt') # Replace with your uploaded model's path
139
 
140
  # Define the prediction function
141
  def predict(image):
 
135
  from PIL import Image
136
 
137
  # Load the YOLO model
138
+ model = torch.hub.load('ultralytics/yolov5', 'custom', path='https://huggingface.co/ayoubsa/yolo_model/blob/main/best.pt') # Replace with your uploaded model's path
139
 
140
  # Define the prediction function
141
  def predict(image):