abidlabs HF Staff commited on
Commit
54f59a2
·
1 Parent(s): d2064fc

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ state = gr.State(0)
4
+
5
+ with gr.Blocks() as demo:
6
+ btn1 = gr.Button()
7
+ btn2 = gr.Button()
8
+
9
+ btn1.click(lambda x:x+1, state, state)
10
+ btn2.click(lambda x:x+1, state, state)
11
+
12
+ demo.launch()