Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ with gr.Blocks() as demo:
|
|
8 |
state = gr.State(0)
|
9 |
|
10 |
|
11 |
-
btn1.click(lambda x:(x+1,x+1), state, [state, numb])
|
12 |
-
btn2.click(lambda x:(x+1,x+1), state, [state, numb], queue=False)
|
13 |
|
14 |
demo.launch()
|
|
|
8 |
state = gr.State(0)
|
9 |
|
10 |
|
11 |
+
btn1.click(lambda x:(x+1,x+1), state, [state, numb], api_name="increment_with_queue")
|
12 |
+
btn2.click(lambda x:(x+1,x+1), state, [state, numb], queue=False, api_name="increment_without_queue")
|
13 |
|
14 |
demo.launch()
|