A newer version of the Gradio SDK is available: 5.31.0
5.31.0
pip install onnx>=1.10.0
python deploy/ONNX/export_onnx.py --weights yolov6s.pt --img 640 --batch 1