File size: 182 Bytes
894bbbc
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr


def fn(image):
    print("aaa")


with gr.Blocks() as demo:
    with gr.Tab("a"):
        image = gr.Image()
    image.change(fn=fn, inputs=image)
demo.launch()