| 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() | |