import gradio as gr | |
with gr.Blocks() as demo: | |
gr.Chatbot(value=[["hey", "hi"], ["hey", "hi"]]) | |
gr.Chatbot(value=[ | |
{"role": "assistant", "content": "How can I help?"}, | |
{"role": "user", "content": "Save me"}, | |
{"role": "user", "content": gr.Image("https://en.wikipedia.org/static/images/icons/wikipedia.png")}, | |
], type="messages") | |
demo.launch() |