Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from ultralytics import YOLO
|
|
4 |
import gradio as gr
|
5 |
|
6 |
# Load the YOLO model
|
7 |
-
|
8 |
-
MODEL_URL = 'best.pt'
|
9 |
model = YOLO(MODEL_URL)
|
10 |
|
11 |
# Define the prediction function for Gradio
|
|
|
4 |
import gradio as gr
|
5 |
|
6 |
# Load the YOLO model
|
7 |
+
MODEL_URL = 'https://huggingface.co/ayoubsa/yolo_model/resolve/main/best.pt'
|
8 |
+
#MODEL_URL = 'best.pt'
|
9 |
model = YOLO(MODEL_URL)
|
10 |
|
11 |
# Define the prediction function for Gradio
|