Spaces:
Runtime error
Runtime error
import gradio as gr | |
cnt = 0 | |
def test(): | |
cnt += 1 | |
return f'triggered!{cnt}' | |
with gr.Blocks() as demo: | |
sketch_pad = gr.ImageEditor(type="pil") | |
output_text = gr.Textbox(label='Output Text') | |
sketch_pad.change(test, outputs=[output_text]) | |
demo.launch() |