File size: 291 Bytes
4b722d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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()