File size: 355 Bytes
abe8613
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

def echo(message, history):
    return f"Echo: {message['text']}"

gr.ChatInterface(
    fn=echo,
    textbox=gr.MultimodalTextbox(file_count="multiple", autofocus=True),
    multimodal=True,
    examples=[{"text": "What is the capital of France?", "files": []}],
    run_examples_on_click=False,
    cache_examples=False,
).launch()