Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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)
|