Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,8 @@ from PIL import Image
|
|
136 |
import numpy as np
|
137 |
|
138 |
# Load the YOLO model
|
139 |
-
|
|
|
140 |
|
141 |
# Define the prediction function
|
142 |
def predict(image):
|
|
|
136 |
import numpy as np
|
137 |
|
138 |
# Load the YOLO model
|
139 |
+
MODEL_URL= 'https://huggingface.co/ayoubsa/yolo_model/resolve/main/best.pt'
|
140 |
+
model = YOLO(MODEL_URL)
|
141 |
|
142 |
# Define the prediction function
|
143 |
def predict(image):
|