Spaces:
Sleeping
Sleeping
File size: 257 Bytes
1920772 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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() |