import gradio as gr with gr.Blocks() as demo: with gr.Row(): img1 = gr.Markdown("""![](https://media.vanityfair.com/photos/650095a4a5dad6d330c01de2/4:3/w_1648,h_1236,c_limit/elon-musk-amber-heard.jpg)""") img2 = gr.Markdown("""![](https://i.insider.com/63d93b280a08ae0018a62b4f?width=700)""") with gr.Row(): chatbot1 = gr.Chatbot() chatbot2 = gr.Chatbot() with gr.Row(): textbox1 = gr.Textbox() textbox2 = gr.Textbox() def echo(message, chat_history): return '', 'echo ' + message textbox1.submit(echo, [textbox1, chatbot1], [textbox1, chatbot1]) textbox2.submit(echo, [textbox2, chatbot2], [textbox2, chatbot2]) demo.launch()