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

Update app.py

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