Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ model = YOLO('best.pt')
|
|
7 |
|
8 |
def detect_objects(image: Image.Image):
|
9 |
# Realizar la inferencia
|
10 |
-
results = model(image)
|
11 |
|
12 |
# Obtener y mostrar los resultados
|
13 |
for r in results:
|
|
|
7 |
|
8 |
def detect_objects(image: Image.Image):
|
9 |
# Realizar la inferencia
|
10 |
+
results = model.predict(image)
|
11 |
|
12 |
# Obtener y mostrar los resultados
|
13 |
for r in results:
|