Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| code = """ | |
| abc | |
| ```py | |
| def test(x): | |
| return x | |
| ``` | |
| """ | |
| def generate(x): | |
| return [ | |
| (f"abc  klm ", "def"), | |
| ("ghi", "jkl"), | |
| (f"abc  klm", "def"), | |
| ] | |
| with gr.Blocks() as demo: | |
| i = gr.Image(type="filepath") | |
| c = gr.Chatbot() | |
| i.change(generate, i, c) | |
| demo.launch() |