PortraitDiffusion / gr4_test.py
Jinl's picture
restore gradio
65b07e7
raw
history blame
276 Bytes
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()