Spaces:
Runtime error
Runtime error
Edvin Behdadijd commited on
Update app.py
Browse files4 unmodified lines567891011121314154 unmodified linesfrom ultralytics import YOLO# Load the YOLOv8 modelmodel = YOLO('best.pt')def detect_objects(image):# Convert the input image to a format YOLO can work withimage = np.array(image,line_width=1)# Perform detectionresults = model(image)[0]4 unmodified lines567891011121314154 unmodified linesfrom ultralytics import YOLO# Load the YOLOv8 modelmodel = YOLO('best.pt',line_width=1)def detect_objects(image):# Convert the input image to a format YOLO can work withimage = np.array(image)# Perform detectionresults = model(image)[0]
app.py+2-2