Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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='
|
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):
|