Gradio chatbot side by side (chatbot arena)

I’m trying to build an app with a tab that contains a chatbot arena, very similar to what is doing, but I’m unable to find a simple example (or even an example) for this.

The idea is that one can send the same message to two different apis that answer in streaming mode. I know that lmsys arena is exaclty that, but the code is convoluted and am not able to find the right file or a simple explanation.

Is there a better example?