import gradio as gr import matplotlib.pyplot as plt def number_detector(s): model = YOLO("best.pt") res = model.predict(source=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()