One way to do this is to add create a gradio app and embed it. This would allow for much more user customization in the averaging.