import gradio as gr from ultralytics import YOLO import torch # model = YOLO('best.pt') path = 'best.pt' model = torch.hub.load("WongKinYiu/yolov7","custom",path,trust_repo=True) def predict(input_image): """ Predict model output """ price = "0" return [input_image, price] with gr.Blocks() as demo: # Title gr.Markdown( """