import gradio as gr def run(message, history): return message["text"] examples = [ { "text": "hey", "files": ["cats.jpg"], }, ] demo = gr.ChatInterface( fn=run, multimodal=True, examples=examples, cache_examples=True, ) demo.queue().launch()