test-chatbot / app.py
dawood's picture
dawood HF staff
Create app.py
1920772
import gradio as gr
def generate(x):
return [
(f"abc ![](/file={x})", "def"),
("ghi", "jkl")
]
with gr.Blocks() as demo:
i = gr.Image(type="filepath")
c = gr.Chatbot()
i.change(generate, i, c)
demo.launch()