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