import gradio as gr from ultralytics import YOLO def number_detector(s): model = YOLO("best_1.pt") res = model.predict(s,conf=0.25) box1 = res[0].boxes.xywh[0] bounding_box1 = box1.cpu().numpy() box2 = res[0].boxes.xywh[1] bounding_box2 = box2.cpu().numpy() if res[0].boxes.data[0][0].numpy()