Snearec commited on
Commit
b3bf7fa
·
1 Parent(s): 208acd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: