Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import numpy as np
|
|
7 |
# Charger le modèle YOLOv8 pré-entraîné
|
8 |
model = YOLO("yolov8n.pt")
|
9 |
|
|
|
10 |
# Fonction pour la détection sur image
|
11 |
def detect_objects_image(img):
|
12 |
results = model(img) # Détection
|
|
|
7 |
# Charger le modèle YOLOv8 pré-entraîné
|
8 |
model = YOLO("yolov8n.pt")
|
9 |
|
10 |
+
|
11 |
# Fonction pour la détection sur image
|
12 |
def detect_objects_image(img):
|
13 |
results = model(img) # Détection
|