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