import gradio as gr | |
def run(message, history): | |
print(message) | |
return "aaa" | |
demo = gr.ChatInterface( | |
fn=run, | |
examples=[ | |
[ | |
{ | |
"text": "Describe the image.", | |
"files": ["cats.jpg"], | |
}, | |
], | |
], | |
multimodal=True, | |
type="messages", | |
cache_examples=False, | |
) | |
demo.launch() | |