increment / app.py
abidlabs's picture
abidlabs HF Staff
Create app.py
54f59a2
raw
history blame
219 Bytes
import gradio as gr
state = gr.State(0)
with gr.Blocks() as demo:
btn1 = gr.Button()
btn2 = gr.Button()
btn1.click(lambda x:x+1, state, state)
btn2.click(lambda x:x+1, state, state)
demo.launch()